summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2020-03-24 14:47:29 +0000
committerokan <okan>2020-03-24 14:47:29 +0000
commit6c20772841684c18d85b45888de01e538f2999b4 (patch)
tree4a8c5cc0e54fe1161a1d06b260948b961444a939 /xevents.c
parent0a7d8cc5c4bfa8df89c7b876d9f52bea14f37014 (diff)
downloadcwm-6c20772841684c18d85b45888de01e538f2999b4.tar.gz
cwm-6c20772841684c18d85b45888de01e538f2999b4.tar.xz
cwm-6c20772841684c18d85b45888de01e538f2999b4.zip
Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer location
to determine what client to set active. Reduces a round trip for every
window.
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 090886a..1aaa929 100644
--- a/xevents.c
+++ b/xevents.c
@@ -87,7 +87,7 @@ xev_handle_maprequest(XEvent *ee)
 		client_ptr_save(old_cc);
 
 	if ((cc = client_find(e->window)) == NULL)
-		cc = client_init(e->window, NULL, 0);
+		cc = client_init(e->window, NULL);
 
 	if ((cc != NULL) && (!(cc->flags & CLIENT_IGNORE)))
 		client_ptr_warp(cc);