make num of groups no longer off-by-one; from Alexander Polakov

note that a re-exec of cwm will not rewrite the group number atom of
*existing* clients, so they will remain off-by-one until each client has
its atom updated, or of course a restart of X.
This commit is contained in:
okan
2013-01-01 14:19:56 +00:00
parent dc1e3a8843
commit 0957fbbee2
5 changed files with 11 additions and 13 deletions

View File

@@ -74,8 +74,6 @@
#define CWM_MENU_DUMMY 0x0001
#define CWM_MENU_FILE 0x0002
#define KBTOGROUP(X) ((X) - 1)
union arg {
char *c;
int i;
@@ -222,7 +220,7 @@ struct screen_ctx {
XftFont *xftfont;
int xinerama_no;
XineramaScreenInfo *xinerama;
#define CALMWM_NGROUPS 9
#define CALMWM_NGROUPS 10
struct group_ctx groups[CALMWM_NGROUPS];
struct group_ctx_q groupq;
int group_hideall;