summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-11 18:37:41 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-11 18:37:41 +0200
commitd7413ffd2d9a84fc3140b28b26f8cb6bb80164e4 (patch)
tree7e7f0f998a77610178e91d57c175526332098abd /event.c
parentafter some days of experimenting with grey background, I finally give up and ... (diff)
downloaddwm-d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4.tar.gz
dwm-d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4.zip
implement multi-tag selection through button3 click on the specific tag
Diffstat (limited to '')
-rw-r--r--event.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/event.c b/event.c
index 8a1c2a9..05b42f0 100644
--- a/event.c
+++ b/event.c
@@ -108,7 +108,13 @@ buttonpress(XEvent *e)
108 for(a.i = 0; a.i < ntags; a.i++) { 108 for(a.i = 0; a.i < ntags; a.i++) {
109 x += textw(tags[a.i]); 109 x += textw(tags[a.i]);
110 if(ev->x < x) { 110 if(ev->x < x) {
111 view(&a); 111 if(ev->button == Button3) {
112 tsel[a.i] = True;
113 arrange(NULL);
114 drawall();
115 }
116 else
117 view(&a);
112 return; 118 return;
113 } 119 }
114 } 120 }