fix missing atom (WM_PROTOCOLS) wrt new style handing; without this, the

window manager didn't know if a client supported CLIENT_PROTO_DELETE and
thus used a hammer, XKillClient.

behaviour reported by Tim van der Molen.
This commit is contained in:
okan 2012-07-04 18:00:13 +00:00
parent f98e123bfc
commit 8c7964468f

View File

@ -519,7 +519,7 @@ client_update(struct client_ctx *cc)
int i;
long n;
if ((n = xu_getprop(cc->win, WM_PROTOCOLS,
if ((n = xu_getprop(cc->win, cwmh[WM_PROTOCOLS].atom,
XA_ATOM, 20L, (u_char **)&p)) <= 0)
return;