From 352cae4380713949d3800ebcda7aff3bb5ab9efc Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Thu, 22 Feb 2007 07:59:13 +0100 Subject: several changes, made togglemax extern and separated it from zoom() - moved zoom() and togglemax() into layout.c, changed void (*func)(Arg *) into void (*func)(Arg), changed default keybindings of focusnext/focusprev and incmasterw to h/j/k/l accordingly, made keys in config*h appear alphabetically (special keys first), renamed resizemaster into incmasterw, renamed MASTER into MASTERWIDTH --- event.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index 3086284b..540aeb64 100644 --- a/event.c +++ b/event.c @@ -11,7 +11,7 @@ typedef struct { unsigned long mod; KeySym keysym; - void (*func)(Arg *arg); + void (*func)(Arg arg); Arg arg; } Key; @@ -124,15 +124,15 @@ buttonpress(XEvent *e) { if(ev->x < x) { if(ev->button == Button1) { if(ev->state & MODKEY) - tag(&a); + tag(a); else - view(&a); + view(a); } else if(ev->button == Button3) { if(ev->state & MODKEY) - toggletag(&a); + toggletag(a); else - toggleview(&a); + toggleview(a); } return; } @@ -141,15 +141,15 @@ buttonpress(XEvent *e) { switch(ev->button) { case Button1: a.i = -1; - setlayout(&a); + setlayout(a); break; case Button4: a.i = 1; - incnmaster(&a); + incnmaster(a); break; case Button5: a.i = -1; - incnmaster(&a); + incnmaster(a); break; } } @@ -162,7 +162,7 @@ buttonpress(XEvent *e) { movemouse(c); } else if(ev->button == Button2) - zoom(NULL); + zoom(a); else if(ev->button == Button3 && (lt->arrange == versatile || c->isversatile) && !c->isfixed) { @@ -261,7 +261,7 @@ keypress(XEvent *e) { && CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) { if(key[i].func) - key[i].func(&key[i].arg); + key[i].func(key[i].arg); } } -- cgit v1.2.3