summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/event.c b/event.c
index e97abadc..a719bf21 100644
--- a/event.c
+++ b/event.c
@@ -111,13 +111,16 @@ buttonpress(XEvent *e)
if(ev->x < x) {
switch(ev->button) {
case Button1:
- view(&a);
- break;
- case Button2:
- toggletag(&a);
+ if(ev->state & MODKEY)
+ tag(&a);
+ else
+ view(&a);
break;
case Button3:
- toggleview(&a);
+ if(ev->state & MODKEY)
+ toggletag(&a);
+ else
+ toggleview(&a);
break;
}
return;