only a window is required to set WM_STATE. also un-confuse xu_ptr_getpos

by using 'win' instead of 'rootwin' so as not to imply only the root
window is queried, rather any window.
This commit is contained in:
okan
2013-04-14 16:13:17 +00:00
parent f3dfc4968c
commit 16ed8bf8e4
3 changed files with 6 additions and 6 deletions

View File

@@ -111,7 +111,7 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
}
client_draw_border(cc);
if (xu_getstate(cc, &state) < 0)
if (xu_getstate(cc->win, &state) < 0)
state = NormalState;
XSelectInput(X_Dpy, cc->win, ColormapChangeMask | EnterWindowMask |