added comment to %u in config.default.h, added Button{4.5} support on mode label 65382657
Anselm R. Garbe · 2007-01-10 12:54 2 file(s) · +16 −4
config.default.h +2 −2
5 5
#define TAGS \
6 6
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
7 7
8 -
#define DEFMODE			dotile /* dofloat */
8 +
#define DEFMODE			dotile		/* dofloat */
9 9
#define FLOATSYMBOL		"><>"
10 -
#define TILESYMBOL		"[%u]="
10 +
#define TILESYMBOL		"[%u]="		/* %u is replaced with nmaster */
11 11
12 12
#define FONT			"-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
13 13
#define NORMBGCOLOR		"#333366"
event.c +14 −2
131 131
				return;
132 132
			}
133 133
		}
134 -
		if((ev->x < x + bmw) && (ev->button == Button1))
135 -
			togglemode(NULL);
134 +
		if(ev->x < x + bmw)
135 +
			switch(ev->button) {
136 +
			case Button1:
137 +
				togglemode(NULL);
138 +
				break;
139 +
			case Button4:
140 +
				a.i = 1;
141 +
				incnmaster(&a);
142 +
				break;
143 +
			case Button5:
144 +
				a.i = -1;
145 +
				incnmaster(&a);
146 +
				break;
147 +
			}
136 148
	}
137 149
	else if((c = getclient(ev->window))) {
138 150
		focus(c);