diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-02-22 07:59:13 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-22 07:59:13 +0100 |
commit | 352cae4380713949d3800ebcda7aff3bb5ab9efc (patch) | |
tree | dd301143a6777dacb09b90d6d27d16aeb19056fc /event.c | |
parent | b3b58c08e4e15c4dbdd04bae52300d1e8effed33 (diff) | |
download | dwm-352cae4380713949d3800ebcda7aff3bb5ab9efc.tar.gz |
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
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/event.c b/event.c index 3086284..540aeb6 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); } } |