diff options
author | okan | 2020-03-24 14:47:29 +0000 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-03-26 20:12:46 +0100 |
commit | 19eacc39316879fb7008f3b71b36e52b09f3b464 (patch) | |
tree | 4d314e660401a208ac806d981d67b59cc179ba58 /xevents.c | |
parent | 6230ae9cbeb69c9ed040e112328552e339d36d96 (diff) | |
download | cwm-19eacc39316879fb7008f3b71b36e52b09f3b464.tar.gz |
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 '')
-rw-r--r-- | xevents.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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.149 2020/02/27 14:56:39 okan Exp $ + * $OpenBSD: xevents.c,v 1.150 2020/03/24 14:47:29 okan Exp $ */ /* @@ -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); |