From 6a53e3a859cd55b6f01ecb2a8a8a30af5d940345 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 16 Sep 2016 14:32:02 +0000 Subject: 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). --- xevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index 8763c8a..582f839 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); -- cgit 1.4.1