diff options
Diffstat (limited to '')
| -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); |
