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

This commit is contained in:
Anselm R. Garbe
2007-02-22 07:59:13 +01:00
parent b3b58c08e4
commit 352cae4380
10 changed files with 188 additions and 187 deletions

20
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);
}
}