From a963aec07af03f9048958f2b7dbbae655c21b1b8 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 8 Jul 2012 02:50:41 +0000 Subject: fix atom for retrieving WM_STATE between re-exec's. --- xutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xutil.c') diff --git a/xutil.c b/xutil.c index 51eba6b..693b900 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.41 2012/07/03 13:49:03 okan Exp $ + * $OpenBSD: xutil.c,v 1.42 2012/07/08 02:50:41 okan Exp $ */ #include @@ -207,7 +207,7 @@ xu_getstate(struct client_ctx *cc, int *state) { long *p = NULL; - if (xu_getprop(cc->win, cwmh[WM_STATE].atom, WM_STATE, 2L, + if (xu_getprop(cc->win, cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 2L, (u_char **)&p) <= 0) return (-1); -- cgit v1.2.3-2-gb3c3