summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/event.c b/event.c
index 5209be35..c2288f4c 100644
--- a/event.c
+++ b/event.c
@@ -119,6 +119,8 @@ buttonpress(XEvent *e)
}
else if((c = getclient(ev->window))) {
focus(c);
+ if(CLEANMASK(ev->state) == 0)
+ return;
switch(ev->button) {
default:
break;