summary refs log tree commit diff
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan <okan>2013-07-15 14:50:44 +0000
committerokan <okan>2013-07-15 14:50:44 +0000
commit4119b5c065ee32189f26a0a95d4c36539003b142 (patch)
tree7aefb33035cda0f7ed0d5aafa9033e0d723487c1 /calmwm.c
parentbd7b8163bb0be2bd4904a179771a8f79163e8161 (diff)
downloadcwm-4119b5c065ee32189f26a0a95d4c36539003b142.tar.gz
cwm-4119b5c065ee32189f26a0a95d4c36539003b142.tar.xz
cwm-4119b5c065ee32189f26a0a95d4c36539003b142.zip
simplify atom handling; allows us to limit to one round-trip to server
for gathering Atoms.
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calmwm.c b/calmwm.c
index 4a5f43d..f2a8a3d 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -37,6 +37,8 @@
 
 char				**cwm_argv;
 Display				*X_Dpy;
+Atom				 cwmh[CWMH_NITEMS];
+Atom				 ewmh[EWMH_NITEMS];
 
 struct screen_ctx_q		 Screenq = TAILQ_HEAD_INITIALIZER(Screenq);
 struct client_ctx_q		 Clientq = TAILQ_HEAD_INITIALIZER(Clientq);
@@ -129,7 +131,7 @@ x_init(const char *dpyname)
 
 	HasRandr = XRRQueryExtension(X_Dpy, &Randr_ev, &i);
 
-	xu_getatoms();
+	conf_atoms();
 
 	conf_cursor(&Conf);