From 19eacc39316879fb7008f3b71b36e52b09f3b464 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 24 Mar 2020 14:47:29 +0000 Subject: 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. --- xevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index 659341e..8c6be52 100644 --- a/xevents.c +++ b/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.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); -- cgit v1.2.3-2-gb3c3