Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applied dwm-windowscrolling patch
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
9897640
..
3f06ea7
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-144,6
+144,10
@@
buttonpress(XEvent *e) {
setlayout(NULL);
break;
}
setlayout(NULL);
break;
}
+ else if(ev->button == Button4)
+ focusclient("-1");
+ else if(ev->button == Button5)
+ focusclient("1");
}
else if((c = getclient(ev->window))) {
focus(c);
}
else if((c = getclient(ev->window))) {
focus(c);
@@
-301,8
+305,7
@@
maprequest(XEvent *e) {
if(!XGetWindowAttributes(dpy, ev->window, &wa))
return;
if(!XGetWindowAttributes(dpy, ev->window, &wa))
return;
- fprintf(stderr, "does the window suck? %s\n", wa.map_state == IsViewable ? "no" : "yes");
- if(wa.override_redirect || wa.map_state != IsViewable)
+ if(wa.override_redirect)
return;
if(!getclient(ev->window))
manage(ev->window, &wa);
return;
if(!getclient(ev->window))
manage(ev->window, &wa);