diff options
author | okan | 2013-04-14 16:13:17 +0000 |
---|---|---|
committer | okan | 2013-04-14 16:13:17 +0000 |
commit | 75a771a90565abdcd59899872c239ad6c81ba800 (patch) | |
tree | 5f77b0738e8d147f2f1ba2fff7fc02830c82983c /client.c | |
parent | 09cfe97666b497284d112091bf41cc40a4320270 (diff) | |
download | cwm-75a771a90565abdcd59899872c239ad6c81ba800.tar.gz |
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.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 2 insertions, 2 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: 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 <sys/param.h> @@ -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 | |