From 75a771a90565abdcd59899872c239ad6c81ba800 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 14 Apr 2013 16:13:17 +0000 Subject: 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. --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 51af7a6..e1b8b91 100644 --- a/client.c +++ b/client.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: client.c,v 1.124 2013/04/12 20:54:27 okan Exp $ + * $OpenBSD: client.c,v 1.125 2013/04/14 16:13:17 okan Exp $ */ #include @@ -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 | -- cgit v1.2.3-2-gb3c3