summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--event.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/event.c b/event.c
index c2288f4..86fb43b 100644
--- a/event.c
+++ b/event.c
@@ -105,7 +105,9 @@ buttonpress(XEvent *e)
105 XButtonPressedEvent *ev = &e->xbutton; 105 XButtonPressedEvent *ev = &e->xbutton;
106 106
107 if(barwin == ev->window) { 107 if(barwin == ev->window) {
108 x = 0; 108 if(ev->x < modew)
109 return;
110 x = modew;
109 for(a.i = 0; a.i < ntags; a.i++) { 111 for(a.i = 0; a.i < ntags; a.i++) {
110 x += textw(tags[a.i]); 112 x += textw(tags[a.i]);
111 if(ev->x < x) { 113 if(ev->x < x) {