summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-27 14:22:58 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-27 14:22:58 +0100
commitf68ec7323c44aa33f12934f0914ff5f0fa8d57eb (patch)
tree00a7294c0f3608b4478d45df06045028a1d001c9 /dwm.c
parent5075cf4dcb85383b6085589e9ca556e20d02b0d8 (diff)
warp cursor to next focused window after killing a window
Diffstat (limited to 'dwm.c')
-rwxr-xr-xdwm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index f3e7926..c65cd35 100755
--- a/dwm.c
+++ b/dwm.c
@@ -1793,6 +1793,9 @@ unmanage(Client *c, int destroyed)
arrange(m);
focus(NULL);
updateclientlist();
+ if (m == selmon && m->sel)
+ XWarpPointer(dpy, None, m->sel->win, 0, 0, 0, 0,
+ m->sel->w/2, m->sel->h/2);
}
}