--- a/config.default.h Mon Jan 08 17:36:56 2007 +0100
+++ b/config.default.h Wed Jan 10 12:54:23 2007 +0100
@@ -5,9 +5,9 @@
#define TAGS \
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
-#define DEFMODE dotile /* dofloat */
+#define DEFMODE dotile /* dofloat */
#define FLOATSYMBOL "><>"
-#define TILESYMBOL "[%u]="
+#define TILESYMBOL "[%u]=" /* %u is replaced with nmaster */
#define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
#define NORMBGCOLOR "#333366"
--- a/event.c Mon Jan 08 17:36:56 2007 +0100
+++ b/event.c Wed Jan 10 12:54:23 2007 +0100
@@ -131,8 +131,20 @@
return;
}
}
- if((ev->x < x + bmw) && (ev->button == Button1))
- togglemode(NULL);
+ if(ev->x < x + bmw)
+ 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))) {
focus(c);