diff options
| author | Abhinav <abhinav.prsai@gmail.com> | 2025-07-22 21:05:32 +0100 |
|---|---|---|
| committer | Abhinav <abhinav.prsai@gmail.com> | 2025-07-23 15:12:27 +0100 |
| commit | 34146a0cb2a4286bf79c6f67aeb5fe2b30a47f13 (patch) | |
| tree | 00e0438f00fb1b9d23fd7dd947f9d7e9a775695e /src/sxwm.c | |
| parent | 07cd0f47abe8d693c4aadf50d3d8b056ab6615f7 (diff) | |
fix closing client wont also warp cursor back
fix closing client wont also warp cursor
Diffstat (limited to 'src/sxwm.c')
| -rw-r--r-- | src/sxwm.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |
