diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-02-28 17:13:13 +0000 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-02-28 17:13:13 +0000 |
| commit | d99ec6148258bd7933f3359ba05080e95f9ecb71 (patch) | |
| tree | 575ae1b25473b83065b0897ac7f35af844ce262b /dwm.c | |
| parent | some more changes towards a better dwm (diff) | |
| download | dwm-d99ec6148258bd7933f3359ba05080e95f9ecb71.tar.gz dwm-d99ec6148258bd7933f3359ba05080e95f9ecb71.zip | |
a small fix to buttonpress
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -291,8 +291,6 @@ applyrules(Client *c) { | |||
| 291 | } | 291 | } |
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | |||
| 295 | |||
| 296 | void | 294 | void |
| 297 | arrange(void) { | 295 | arrange(void) { |
| 298 | unsigned int i; | 296 | unsigned int i; |
| @@ -342,6 +340,8 @@ buttonpress(XEvent *e) { | |||
| 342 | if(ev->window == selview->barwin) { | 340 | if(ev->window == selview->barwin) { |
| 343 | x = 0; | 341 | x = 0; |
| 344 | for(i = 0; i < LENGTH(tags); i++) { | 342 | for(i = 0; i < LENGTH(tags); i++) { |
| 343 | if(&views[vtags[i]] != selview) | ||
| 344 | continue; | ||
| 345 | x += textw(tags[i]); | 345 | x += textw(tags[i]); |
| 346 | if(ev->x < x) { | 346 | if(ev->x < x) { |
| 347 | if(ev->button == Button1) { | 347 | if(ev->button == Button1) { |
