diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-31 17:49:04 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-31 17:49:04 +0200 |
| commit | 05fbbbd8dc3f990f07fe2055693bef0031fd4623 (patch) | |
| tree | 0403064a19cac17c1d7d8e2ed65ec0e481408bb7 /event.c | |
| parent | applied sanders patch to remove unnecessary commit() (diff) | |
| download | dwm-05fbbbd8dc3f990f07fe2055693bef0031fd4623.tar.gz dwm-05fbbbd8dc3f990f07fe2055693bef0031fd4623.zip | |
implemented Button2 press on tags for toggletag on the focused client
Diffstat (limited to '')
| -rw-r--r-- | event.c | 11 |
1 files changed, 9 insertions, 2 deletions
| @@ -109,10 +109,17 @@ 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 == Button1) | 112 | switch(ev->button) { |
| 113 | case Button1: | ||
| 113 | view(&a); | 114 | view(&a); |
| 114 | else if(ev->button == Button3) | 115 | break; |
| 116 | case Button2: | ||
| 117 | toggletag(&a); | ||
| 118 | break; | ||
| 119 | case Button3: | ||
| 115 | toggleview(&a); | 120 | toggleview(&a); |
| 121 | break; | ||
| 122 | } | ||
| 116 | return; | 123 | return; |
| 117 | } | 124 | } |
| 118 | } | 125 | } |
