summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/event.c b/event.c
index 3c83aa8..1d2227d 100644
--- a/event.c
+++ b/event.c
@@ -116,8 +116,10 @@ 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);