summaryrefslogtreecommitdiff
path: root/app/cwm/xevents.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2020-03-24 14:47:30 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2020-03-24 14:47:30 +0000
commit15c0644b6fa22acd210e9ea83b1a74dc59bb890c (patch)
tree80dafc0fa154aa3428b5fd3a70a7d0c915c88557 /app/cwm/xevents.c
parent3d8a0ab75ebfb2e032b0e438fcd51ad6373d008c (diff)
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 'app/cwm/xevents.c')
-rw-r--r--app/cwm/xevents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c
index 659341e4a..8c6be5235 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.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);