diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-07-16 14:30:49 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-07-16 14:30:49 +0000 |
commit | 7f87ff9a0cedf9cb2273092ed6d181c5741d4260 (patch) | |
tree | c6951702bfe570410bfd07c72b61bdc600b7e86e /app/cwm/xutil.c | |
parent | b12a392663f299cfd2a5900dbaeed79a4775974b (diff) |
we no longer need to construct an array for _NET_SUPPORTED.
Diffstat (limited to 'app/cwm/xutil.c')
-rw-r--r-- | app/cwm/xutil.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c index a6e77929d..b5680536d 100644 --- a/app/cwm/xutil.c +++ b/app/cwm/xutil.c @@ -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: xutil.c,v 1.73 2013/07/15 23:51:59 okan Exp $ + * $OpenBSD: xutil.c,v 1.74 2013/07/16 14:30:48 okan Exp $ */ #include <sys/param.h> @@ -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 |