summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga <oga>2009-12-07 23:19:51 +0000
committeroga <oga>2009-12-07 23:19:51 +0000
commitaa88d5848e0b3ee3ea7c64c7582eddd963dcecb2 (patch)
treec1a5ead28fa7e68875113d9c20db450c4b2110e3 /calmwm.h
parent728d2a40dd4e0151c6473179d35ca08fd0a0f1b4 (diff)
downloadcwm-aa88d5848e0b3ee3ea7c64c7582eddd963dcecb2.tar.gz
cwm-aa88d5848e0b3ee3ea7c64c7582eddd963dcecb2.tar.xz
cwm-aa88d5848e0b3ee3ea7c64c7582eddd963dcecb2.zip
Implement _NET_NUMBER_OF_DESKTOPS, currently this is statically 9 and
unchangable. the group code needs some cleaning up before this will be a
bit less hackish.

ok okan@
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 9885117..4201968 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -159,6 +159,7 @@ TAILQ_HEAD(client_ctx_q, client_ctx);
 
 extern const char *shortcut_to_name[];
 
+#define CALMWM_NGROUPS 9
 struct group_ctx {
 	TAILQ_ENTRY(group_ctx)	 entry;
 	struct client_ctx_q	 clients;
@@ -528,7 +529,8 @@ extern struct conf			 Conf;
 #define	_NET_WM_NAME			 cwm_atoms[9]
 #define	_NET_ACTIVE_WINDOW		 cwm_atoms[10]
 #define _NET_CLIENT_LIST		 cwm_atoms[11]
-#define CWM_NO_ATOMS			 12
+#define	_NET_NUMBER_OF_DESKTOPS		 cwm_atoms[12]
+#define CWM_NO_ATOMS			 13
 #define CWM_NETWM_START			 7
 
 extern Atom				 cwm_atoms[CWM_NO_ATOMS];