diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 10:00:47 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 10:00:47 +0200 |
| commit | 7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372 (patch) | |
| tree | f9df230fceb08d375d96ff8c51ced915604e4931 | |
| parent | implemented focusprev on button1 press in the bar, and focusnext on button3 p... (diff) | |
| download | dwm-7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372.tar.gz dwm-7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372.zip | |
realized that client focussing through the bar is pretty useless, better is sloppy view focussing for B1/B3 as well instead
| -rw-r--r-- | event.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -103,7 +103,7 @@ buttonpress(XEvent *e) | |||
| 103 | 103 | ||
| 104 | if(barwin == ev->window) { | 104 | if(barwin == ev->window) { |
| 105 | switch(ev->button) { | 105 | switch(ev->button) { |
| 106 | case Button1: | 106 | default: |
| 107 | x = 0; | 107 | x = 0; |
| 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]); |
| @@ -112,10 +112,10 @@ buttonpress(XEvent *e) | |||
| 112 | return; | 112 | return; |
| 113 | } | 113 | } |
| 114 | } | 114 | } |
| 115 | focusprev(NULL); | 115 | if(ev->button == Button1) |
| 116 | break; | 116 | viewprev(&a); |
| 117 | case Button3: | 117 | else if(ev->button == Button3) |
| 118 | focusnext(NULL); | 118 | viewnext(&a); |
| 119 | break; | 119 | break; |
| 120 | case Button4: | 120 | case Button4: |
| 121 | viewprev(&a); | 121 | viewprev(&a); |
