realized that client focussing through the bar is pretty useless, better is sloppy view focussing for B1/B3 as well instead
7d4184dc
1 file(s) · +5 −5
| 103 | 103 | ||
| 104 | 104 | if(barwin == ev->window) { |
|
| 105 | 105 | switch(ev->button) { |
|
| 106 | - | case Button1: |
|
| 106 | + | default: |
|
| 107 | 107 | x = 0; |
|
| 108 | 108 | for(a.i = 0; a.i < ntags; a.i++) { |
|
| 109 | 109 | x += textw(tags[a.i]); |
|
| 112 | 112 | return; |
|
| 113 | 113 | } |
|
| 114 | 114 | } |
|
| 115 | - | focusprev(NULL); |
|
| 116 | - | break; |
|
| 117 | - | case Button3: |
|
| 118 | - | focusnext(NULL); |
|
| 115 | + | if(ev->button == Button1) |
|
| 116 | + | viewprev(&a); |
|
| 117 | + | else if(ev->button == Button3) |
|
| 118 | + | viewnext(&a); |
|
| 119 | 119 | break; |
|
| 120 | 120 | case Button4: |
|
| 121 | 121 | viewprev(&a); |
|