From 653826572d5dfe36fc567b2fdce7ef5d9ad0bfbc Mon Sep 17 00:00:00 2001 From: Anselm R. Garbe Date: Wed, 10 Jan 2007 12:54:23 +0100 Subject: added comment to %u in config.default.h, added Button{4.5} support on mode label --- event.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index c9ad387..2deef14 100644 --- a/event.c +++ b/event.c @@ -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); -- cgit v1.2.3