summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhinav <abhinav.prsai@gmail.com>2025-07-22 21:05:32 +0100
committerAbhinav <abhinav.prsai@gmail.com>2025-07-23 15:12:27 +0100
commit34146a0cb2a4286bf79c6f67aeb5fe2b30a47f13 (patch)
tree00e0438f00fb1b9d23fd7dd947f9d7e9a775695e
parent07cd0f47abe8d693c4aadf50d3d8b056ab6615f7 (diff)
fix closing client wont also warp cursor back
fix closing client wont also warp cursor
-rw-r--r--src/sxwm.c6
1 files changed, 5 insertions, 1 deletions
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;