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
this algorithm seems to keep order for any scenario
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
c2288f4
..
c7a0b15
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-116,10
+116,14
@@
buttonpress(XEvent *e)
return;
}
}
+ if(ev->x < x + bmw) {
+ if(ev->button == Button1)
+ togglemode(NULL);
+ }
}
else if((c = getclient(ev->window))) {
focus(c);
- if(CLEANMASK(ev->state) == 0)
+ if(CLEANMASK(ev->state) != MODKEY)
return;
switch(ev->button) {
default: