diff options
author | okan | 2013-04-17 13:52:20 +0000 |
---|---|---|
committer | okan | 2013-04-17 13:52:20 +0000 |
commit | 85984c35a322bce1ae3c3377e4c36b7683891ad3 (patch) | |
tree | 41bd2599ff4ea50d524a618ddbd794e4ae3b3925 /xutil.c | |
parent | 8cf54b8535a9a2d1e38c3f022abfc06c5f1aa406 (diff) | |
download | cwm-85984c35a322bce1ae3c3377e4c36b7683891ad3.tar.gz |
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.
Diffstat (limited to '')
-rw-r--r-- | xutil.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 <sys/param.h> @@ -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); } |