JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
trying a different configuration
[dwm.git] / event.c
diff --git a/event.c b/event.c
index 86fb43b..3c83aa8 100644 (file)
--- a/event.c
+++ b/event.c
@@ -105,9 +105,7 @@ buttonpress(XEvent *e)
        XButtonPressedEvent *ev = &e->xbutton;
 
        if(barwin == ev->window) {
-               if(ev->x < modew)
-                       return;
-               x = modew;
+               x = 0;
                for(a.i = 0; a.i < ntags; a.i++) {
                        x += textw(tags[a.i]);
                        if(ev->x < x) {
@@ -118,6 +116,8 @@ buttonpress(XEvent *e)
                                return;
                        }
                }
+               if(ev->x < x + bmw)
+                       togglemode(NULL);
        }
        else if((c = getclient(ev->window))) {
                focus(c);