X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=eab9b1282ccd532bae6a594240c7ab2273c37d6c;hb=10885d349a8426f0a55f34e78a2592267e8e55be;hp=83e1b864f91de4ae348b6ac41760fdf484a7793b;hpb=fee8df6ccf3ab1494421d422af252f7b3da3a811;p=dwm.git diff --git a/event.c b/event.c index 83e1b86..eab9b12 100644 --- a/event.c +++ b/event.c @@ -123,10 +123,8 @@ buttonpress(XEvent *e) { return; } } - if(ev->x < x + bmw) { - if(ev->button == Button1) - togglemode(NULL); - } + if((ev->x < x + bmw) && (ev->button == Button1)) + togglemode(NULL); } else if((c = getclient(ev->window))) { focus(c);