added comment to %u in config.default.h, added Button{4.5} support on mode label

This commit is contained in:
Anselm R. Garbe 2007-01-10 12:54:23 +01:00
parent 5a5851bac2
commit 653826572d
2 changed files with 16 additions and 4 deletions

View file

@ -5,9 +5,9 @@
#define TAGS \ #define TAGS \
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
#define DEFMODE dotile /* dofloat */ #define DEFMODE dotile /* dofloat */
#define FLOATSYMBOL "><>" #define FLOATSYMBOL "><>"
#define TILESYMBOL "[%u]=" #define TILESYMBOL "[%u]=" /* %u is replaced with nmaster */
#define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" #define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
#define NORMBGCOLOR "#333366" #define NORMBGCOLOR "#333366"

16
event.c
View file

@ -131,8 +131,20 @@ buttonpress(XEvent *e) {
return; return;
} }
} }
if((ev->x < x + bmw) && (ev->button == Button1)) if(ev->x < x + bmw)
togglemode(NULL); 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))) { else if((c = getclient(ev->window))) {
focus(c); focus(c);