diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2016-09-16 14:32:03 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2016-09-16 14:32:03 +0000 |
commit | ab9a91599ced007e4aebd94a8eeb120a641453c2 (patch) | |
tree | afff2902f770104a1195b8375fb7c51268566862 /app/cwm/xevents.c | |
parent | 030169216e9b075261283ee3ba07182f30dbe8ca (diff) |
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 'app/cwm/xevents.c')
-rw-r--r-- | app/cwm/xevents.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index d82a3d2c7..cda021be5 100644 --- a/app/cwm/xevents.c +++ b/app/cwm/xevents.c @@ -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: xevents.c,v 1.121 2016/09/14 19:45:33 okan Exp $ + * $OpenBSD: xevents.c,v 1.122 2016/09/16 14:32:02 okan Exp $ */ /* @@ -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); |