summary refs log tree commit diff
path: root/group.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 /group.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 'group.c')
-rw-r--r--group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/group.c b/group.c
index 020faf6..e025be6 100644
--- a/group.c
+++ b/group.c
@@ -374,7 +374,7 @@ group_autogroup(struct client_ctx *cc)
 	if (cc->app_class == NULL || cc->app_name == NULL)
 		return;
 
-	if (xu_getprop(cc->win, ewmh[_NET_WM_DESKTOP].atom,
+	if (xu_getprop(cc->win, ewmh[_NET_WM_DESKTOP],
 	    XA_CARDINAL, 1, (unsigned char **)&grpno) > 0) {
 		if (*grpno == 0xffffffff)
 			no = 0;
@@ -418,8 +418,8 @@ group_update_names(struct screen_ctx *sc)
 	unsigned char	*prop_ret;
 	int		 i = 0, j = 0, nstrings = 0, n = 0, setnames = 0;
 
-	if ((j = xu_getprop(sc->rootwin, ewmh[_NET_DESKTOP_NAMES].atom,
-	    cwmh[UTF8_STRING].atom, 0xffffff, (u_char **)&prop_ret)) > 0) {
+	if ((j = xu_getprop(sc->rootwin, ewmh[_NET_DESKTOP_NAMES],
+	    cwmh[UTF8_STRING], 0xffffff, (u_char **)&prop_ret)) > 0) {
 		prop_ret[j - 1] = '\0'; /* paranoia */
 		while (i < j) {
 			if (prop_ret[i++] == '\0')