diff options
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 2 | ||||
| -rw-r--r-- | dwm.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index dfbbdd1..4dfc11b 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -14,7 +14,7 @@ static const Bool showbar = True; /* False means no bar */ | |||
| 14 | static const Bool topbar = True; /* False means bottom bar */ | 14 | static const Bool topbar = True; /* False means bottom bar */ |
| 15 | 15 | ||
| 16 | /* monitor(s) symbols */ | 16 | /* monitor(s) symbols */ |
| 17 | static const char *monsyms[] = { "<1>", "<2>", "<3>", "<4>", "<5>" }; | 17 | static const char *monsyms[] = { "<1>", "<2>", "<3>", "<4>" }; |
| 18 | 18 | ||
| 19 | /* tagging */ | 19 | /* tagging */ |
| 20 | static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; | 20 | static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
| @@ -1690,6 +1690,8 @@ updategeom(void) { | |||
| 1690 | if(XineramaIsActive(dpy)) | 1690 | if(XineramaIsActive(dpy)) |
| 1691 | info = XineramaQueryScreens(dpy, &n); | 1691 | info = XineramaQueryScreens(dpy, &n); |
| 1692 | #endif /* XINERAMA */ | 1692 | #endif /* XINERAMA */ |
| 1693 | if(n > LENGTH(monsyms)) | ||
| 1694 | n = LENGTH(monsyms); | ||
| 1693 | /* allocate monitor(s) for the new geometry setup */ | 1695 | /* allocate monitor(s) for the new geometry setup */ |
| 1694 | for(i = 0; i < n; i++) { | 1696 | for(i = 0; i < n; i++) { |
| 1695 | if(!(m = (Monitor *)malloc(sizeof(Monitor)))) | 1697 | if(!(m = (Monitor *)malloc(sizeof(Monitor)))) |
