JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied sanders somepatches.patch
[dwm.git] / event.c
diff --git a/event.c b/event.c
index 5209be3..1d2227d 100644 (file)
--- a/event.c
+++ b/event.c
@@ -116,9 +116,15 @@ 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)
+                       return;
                switch(ev->button) {
                default:
                        break;