From 04e1c4d4ec08c96fbc13dfb72f061b1845f9b785 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 1 Jan 2013 14:19:56 +0000 Subject: 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. --- calmwm.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 3b26df3..c5476d5 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.179 2012/12/19 15:21:34 okan Exp $ + * $OpenBSD: calmwm.h,v 1.180 2013/01/01 14:19:56 okan Exp $ */ #ifndef _CALMWM_H_ @@ -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; -- cgit v1.2.3-2-gb3c3