diff options
author | Anselm R. Garbe | 2007-01-10 12:54:23 +0100 |
---|---|---|
committer | Anselm R. Garbe | 2007-01-10 12:54:23 +0100 |
commit | 653826572d5dfe36fc567b2fdce7ef5d9ad0bfbc (patch) | |
tree | 55b5042461307812813d6ed59690204bb30d0097 /event.c | |
parent | 5a5851bac2670624f30c84efe4129f0101f62255 (diff) |
added comment to %u in config.default.h, added Button{4.5} support on mode label
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -131,8 +131,20 @@ buttonpress(XEvent *e) { return; } } - if((ev->x < x + bmw) && (ev->button == Button1)) - togglemode(NULL); + if(ev->x < x + bmw) + switch(ev->button) { + case Button1: + togglemode(NULL); + break; + case Button4: + a.i = 1; + incnmaster(&a); + break; + case Button5: + a.i = -1; + incnmaster(&a); + break; + } } else if((c = getclient(ev->window))) { focus(c); |