pinosaur
/
dwm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a5851b
)
added comment to %u in config.default.h, added Button{4.5} support on mode label
author
Anselm R. Garbe
<arg@suckless.org>
Wed, 10 Jan 2007 11:54:23 +0000
(12:54 +0100)
committer
Anselm R. Garbe
<arg@suckless.org>
Wed, 10 Jan 2007 11:54:23 +0000
(12:54 +0100)
config.default.h
patch
|
blob
|
history
event.c
patch
|
blob
|
history
diff --git
a/config.default.h
b/config.default.h
index
174be3f
..
73dc489
100644
(file)
--- a/
config.default.h
+++ b/
config.default.h
@@
-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"
diff --git
a/event.c
b/event.c
index
c9ad387
..
2deef14
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-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);