X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=c7a0b150b8f09b055df796002a0ca58f4d94fbe6;hb=016c54196e682ae8658854febb746b0437a010dc;hp=3c83aa803b6495b3c1315dc56ea3922c6a0e1c45;hpb=e995c1b5325f88d197675950c15762d001dd80ef;p=dwm.git diff --git a/event.c b/event.c index 3c83aa8..c7a0b15 100644 --- a/event.c +++ b/event.c @@ -116,12 +116,14 @@ buttonpress(XEvent *e) return; } } - if(ev->x < x + bmw) - togglemode(NULL); + 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: