summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index 5c21fcb..187c65e 100644
--- a/event.c
+++ b/event.c
@@ -109,10 +109,10 @@ buttonpress(XEvent *e)
109 for(a.i = 0; a.i < ntags; a.i++) { 109 for(a.i = 0; a.i < ntags; a.i++) {
110 x += textw(tags[a.i]); 110 x += textw(tags[a.i]);
111 if(ev->x < x) { 111 if(ev->x < x) {
112 if(ev->button == Button3) 112 if(ev->button == Button1)
113 toggleview(&a);
114 else
115 view(&a); 113 view(&a);
114 else if(ev->button == Button3)
115 toggleview(&a);
116 return; 116 return;
117 } 117 }
118 } 118 }