Introduction
Introduction Statistics Contact Development Disclaimer Help
tadded comment to %u in config.default.h, added Button{4.5} support on mode lab…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 653826572d5dfe36fc567b2fdce7ef5d9ad0bfbc
parent 5a5851bac2670624f30c84efe4129f0101f62255
Author: Anselm R. Garbe <[email protected]>
Date: Wed, 10 Jan 2007 12:54:23 +0100
added comment to %u in config.default.h, added Button{4.5} support on mode label
Diffstat:
M config.default.h | 4 ++--
M event.c | 16 ++++++++++++++--
2 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/config.default.h b/config.default.h
t@@ -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 wit…
#define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*…
#define NORMBGCOLOR "#333366"
diff --git a/event.c b/event.c
t@@ -131,8 +131,20 @@ buttonpress(XEvent *e) {
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);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.