about summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2013-07-16 14:30:48 +0000
committerokan <okan>2013-07-16 14:30:48 +0000
commita439012b5806997e60df870faad87a5fec20d4e8 (patch)
tree823b5a2f685529afa3d137ab53f9faa15d545012
parentfbb9d32d0a04bc1cc17636460f9a92a2595130e9 (diff)
downloadcwm-a439012b5806997e60df870faad87a5fec20d4e8.tar.gz
cwm-a439012b5806997e60df870faad87a5fec20d4e8.tar.xz
cwm-a439012b5806997e60df870faad87a5fec20d4e8.zip
we no longer need to construct an array for _NET_SUPPORTED.
-rw-r--r--xutil.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/xutil.c b/xutil.c
index 1e408a9..7912cb8 100644
--- a/xutil.c
+++ b/xutil.c
@@ -185,14 +185,8 @@ xu_set_wm_state(Window win, int state)
 void
 xu_ewmh_net_supported(struct screen_ctx *sc)
 {
-	Atom	 atom[EWMH_NITEMS];
-	u_int	 i;
-
-	for (i = 0; i < nitems(ewmh); i++)
-		atom[i] = ewmh[i];
-
 	XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_SUPPORTED],
-	    XA_ATOM, 32, PropModeReplace, (unsigned char *)atom, EWMH_NITEMS);
+	    XA_ATOM, 32, PropModeReplace, (unsigned char *)ewmh, EWMH_NITEMS);
 }
 
 void