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.
This commit is contained in:
okan
2020-03-24 14:47:29 +00:00
parent 0a7d8cc5c4
commit 6c20772841
5 changed files with 20 additions and 40 deletions

View File

@ -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);