From 85984c35a322bce1ae3c3377e4c36b7683891ad3 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 17 Apr 2013 13:52:20 +0000 Subject: slightly rework WM_STATE set/get to make it less ambigious; will be more clear on what needs to change to make it right in the end. --- xutil.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xutil.c') diff --git a/xutil.c b/xutil.c index 603e796..84b564e 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.54 2013/04/14 16:13:17 okan Exp $ + * $OpenBSD: xutil.c,v 1.55 2013/04/17 13:52:20 okan Exp $ */ #include @@ -218,15 +218,14 @@ xu_getstate(Window win, int *state) } void -xu_setstate(struct client_ctx *cc, int state) +xu_setstate(Window win, int state) { long dat[2]; dat[0] = state; dat[1] = None; - cc->state = state; - XChangeProperty(X_Dpy, cc->win, + XChangeProperty(X_Dpy, win, cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 32, PropModeReplace, (unsigned char *)dat, 2); } -- cgit v1.2.3-2-gb3c3