From abef4969c24240c19c10d8dfc57e99d3d38437f4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 10 Sep 2007 17:18:43 +0200 Subject: [PATCH] fix regression --- awesome.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index 368301bf..fac7e3aa 100644 --- a/awesome.c +++ b/awesome.c @@ -143,16 +143,16 @@ scan(Display *disp, awesome_config *awesomeconf) * \param awesomeconf awesome config ref * \todo clean things... */ +enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ +static Atom netatom[NetWMName]; static void setup(Display *disp, awesome_config *awesomeconf) { XSetWindowAttributes wa; - enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ - Atom netatom[NetWMName]; netatom[NetSupported] = XInternAtom(disp, "_NET_SUPPORTED", False); netatom[NetWMName] = XInternAtom(disp, "_NET_WM_NAME", False); - XChangeProperty(disp, DefaultRootWindow(disp), XInternAtom(disp, "_NET_SUPPORTED", False), + XChangeProperty(disp, DefaultRootWindow(disp), netatom[NetSupported], XA_ATOM, 32, PropModeReplace, (unsigned char *) netatom, NetLast); /* init cursors */ cursor[CurNormal] = XCreateFontCursor(disp, XC_left_ptr);