about summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2016-09-16 14:32:02 +0000
committerokan <okan>2016-09-16 14:32:02 +0000
commitfa06851b0ee5b49138f782e500e12646455dd171 (patch)
treed79d5fa97a78d6df308cb536d6bd15e9a30a0737 /xevents.c
parent8d44e4b3e834663253dee110e98f8284b3092afc (diff)
parent6a53e3a859cd55b6f01ecb2a8a8a30af5d940345 (diff)
downloadcwm-fa06851b0ee5b49138f782e500e12646455dd171.tar.gz
cwm-fa06851b0ee5b49138f782e500e12646455dd171.tar.xz
cwm-fa06851b0ee5b49138f782e500e12646455dd171.zip
cvsimport
* refs/heads/master:
  During init, query screen for _NET_ACTIVE_WINDOW and set that client as active; while we already look at what's under the pointer, use this information first, then look under the pointer (saving that round-trip). This restores the active state to a client after restart even if the pointer is not above it (and of course the pointer is not above another client).
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index 2511205..4435016 100644
--- a/xevents.c
+++ b/xevents.c
@@ -81,7 +81,7 @@ xev_handle_maprequest(XEvent *ee)
 		client_ptrsave(old_cc);
 
 	if ((cc = client_find(e->window)) == NULL)
-		cc = client_init(e->window, NULL);
+		cc = client_init(e->window, NULL, 0);
 
 	if ((cc != NULL) && (!(cc->flags & CLIENT_IGNORE)))
 		client_ptrwarp(cc);