aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2013-07-16 14:30:48 +0000
committerokan2013-07-16 14:30:48 +0000
commitb5137cfeb0e04ba77f09e131d6a390ec2434a988 (patch)
treef4095a99c86d95fe6cd41adf6bc19f155bfc7192
parentc375ec5e0fc73942015844fbb7209326e6348136 (diff)
downloadcwm-b5137cfeb0e04ba77f09e131d6a390ec2434a988.tar.gz
we no longer need to construct an array for _NET_SUPPORTED.
-rw-r--r--xutil.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/xutil.c b/xutil.c
index a6e7792..b568053 100644
--- a/xutil.c
+++ b/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