From: David Hill Date: Fri, 20 Jul 2012 00:32:52 +0000 (-0400) Subject: in getstate(), we need to fetch type XCB_ATOM_ATOM, not the atom. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=9fa42be8ded2943b3d9fae021725ff4a21268255;hp=e2ad0e4e41bd98959638f482901a878c2135fff2;p=spectrwm.git in getstate(), we need to fetch type XCB_ATOM_ATOM, not the atom. --- diff --git a/spectrwm.c b/spectrwm.c index c8daa81..e0552dd 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -1992,7 +1992,7 @@ getstate(xcb_window_t w) xcb_get_property_cookie_t c; xcb_get_property_reply_t *r; - c = xcb_get_property(conn, 0, w, a_state, a_state, 0L, 2L); + c = xcb_get_property(conn, 0, w, a_state, XCB_ATOM_ATOM, 0L, 2L); r = xcb_get_property_reply(conn, c, NULL); if (r) {