diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 18:37:41 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 18:37:41 +0200 |
| commit | d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4 (patch) | |
| tree | 7e7f0f998a77610178e91d57c175526332098abd /event.c | |
| parent | after some days of experimenting with grey background, I finally give up and ... (diff) | |
| download | dwm-d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4.tar.gz dwm-d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4.zip | |
implement multi-tag selection through button3 click on the specific tag
Diffstat (limited to 'event.c')
| -rw-r--r-- | event.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -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 | } |
