aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2020-03-24 14:47:29 +0000
committerWynn Wolf Arbor2020-03-26 20:12:46 +0100
commit19eacc39316879fb7008f3b71b36e52b09f3b464 (patch)
tree4d314e660401a208ac806d981d67b59cc179ba58 /xevents.c
parent6230ae9cbeb69c9ed040e112328552e339d36d96 (diff)
downloadcwm-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.c4
1 files changed, 2 insertions, 2 deletions
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);