Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1724f7f
)
restricting number of mons by length of monsyms
author
Anselm R Garbe
<garbeam@gmail.com>
Thu, 9 Jul 2009 10:21:06 +0000
(11:21 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Thu, 9 Jul 2009 10:21:06 +0000
(11:21 +0100)
config.def.h
patch
|
blob
|
history
dwm.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
dfbbdd1
..
4dfc11b
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-14,7
+14,7
@@
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
/* monitor(s) symbols */
static const Bool topbar = True; /* False means bottom bar */
/* monitor(s) symbols */
-static const char *monsyms[] = { "<1>", "<2>", "<3>", "<4>", "<5>" };
+static const char *monsyms[] = { "<1>", "<2>", "<3>", "<4>" };
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
diff --git
a/dwm.c
b/dwm.c
index
17d5218
..
fa5fdea
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1690,6
+1690,8
@@
updategeom(void) {
if(XineramaIsActive(dpy))
info = XineramaQueryScreens(dpy, &n);
#endif /* XINERAMA */
if(XineramaIsActive(dpy))
info = XineramaQueryScreens(dpy, &n);
#endif /* XINERAMA */
+ if(n > LENGTH(monsyms))
+ n = LENGTH(monsyms);
/* allocate monitor(s) for the new geometry setup */
for(i = 0; i < n; i++) {
if(!(m = (Monitor *)malloc(sizeof(Monitor))))
/* allocate monitor(s) for the new geometry setup */
for(i = 0; i < n; i++) {
if(!(m = (Monitor *)malloc(sizeof(Monitor))))