aboutsummaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-31 17:49:04 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-31 17:49:04 +0200
commit05fbbbd8dc3f990f07fe2055693bef0031fd4623 (patch)
tree0403064a19cac17c1d7d8e2ed65ec0e481408bb7 /event.c
parent4c368bcd24172166aab32948fc63feaa6a1bec93 (diff)
downloaddwm-05fbbbd8dc3f990f07fe2055693bef0031fd4623.tar.gz
implemented Button2 press on tags for toggletag on the focused client
Diffstat (limited to 'event.c')
-rw-r--r--event.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/event.c b/event.c
index bdf4071..e97abad 100644
--- a/event.c
+++ b/event.c
@@ -109,10 +109,17 @@ buttonpress(XEvent *e)
for(a.i = 0; a.i < ntags; a.i++) {
x += textw(tags[a.i]);
if(ev->x < x) {
- if(ev->button == Button1)
+ switch(ev->button) {
+ case Button1:
view(&a);
- else if(ev->button == Button3)
+ break;
+ case Button2:
+ toggletag(&a);
+ break;
+ case Button3:
toggleview(&a);
+ break;
+ }
return;
}
}
remember that computers suck.