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.
This commit is contained in:
okan
2013-04-17 13:52:20 +00:00
parent 1dbcc394ae
commit 302690624e
3 changed files with 14 additions and 11 deletions

View File

@@ -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);
}