mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
5
xutil.c
5
xutil.c
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user