diff options
author | okan <okan> | 2016-09-16 14:32:02 +0000 |
---|---|---|
committer | okan <okan> | 2016-09-16 14:32:02 +0000 |
commit | 6a53e3a859cd55b6f01ecb2a8a8a30af5d940345 (patch) | |
tree | a12b6268f4446ce69a18a218e8996ebfe18e4786 /xevents.c | |
parent | 2bbe111cc0e2ddd8b684e22dab337086c39ac46a (diff) | |
download | cwm-6a53e3a859cd55b6f01ecb2a8a8a30af5d940345.tar.gz cwm-6a53e3a859cd55b6f01ecb2a8a8a30af5d940345.tar.xz cwm-6a53e3a859cd55b6f01ecb2a8a8a30af5d940345.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |