From 34146a0cb2a4286bf79c6f67aeb5fe2b30a47f13 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Tue, 22 Jul 2025 21:05:32 +0100 Subject: fix closing client wont also warp cursor back fix closing client wont also warp cursor --- src/sxwm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sxwm.c b/src/sxwm.c index d405e0e..80cf642 100644 --- a/src/sxwm.c +++ b/src/sxwm.c @@ -514,8 +514,9 @@ void focus_next(void) current_monitor = c->mon; XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); XRaiseWindow(dpy, c->win); - if (user_config.warp_cursor) + if (user_config.warp_cursor) { warp_cursor(c); + } update_borders(); } @@ -1039,6 +1040,9 @@ void hdl_destroy_ntf(XEvent *xev) if (focused) { XSetInputFocus(dpy, focused->win, RevertToPointerRoot, CurrentTime); XRaiseWindow(dpy, focused->win); + if (user_config.warp_cursor) { + warp_cursor(focused); + } } } return; -- cgit v1.2.3