From f68ec7323c44aa33f12934f0914ff5f0fa8d57eb Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Sun, 27 Jul 2025 14:22:58 +0100 Subject: warp cursor to next focused window after killing a window --- config.h | 1 + dwm.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config.h b/config.h index b596ee4..dc846bc 100755 --- a/config.h +++ b/config.h @@ -39,6 +39,7 @@ static const Rule rules[] = { { "qBittorrent", "qbittorrent", NULL, 0, 1, 0, 0, -1 }, { "St", "st", NULL, 0, 0, 1, 1, -1 }, { "stfloat", NULL, NULL, 0, 1, 1, 1, -1 }, + { "STARTER", NULL, NULL, 0, 1, 1, 1, -1 }, { "mpv", NULL, NULL, 0, 1, 0, 0, -1 }, { "Nsxiv", NULL, NULL, 0, 1, 0, 0, -1 }, { "scrcpy", NULL, NULL, 0, 1, 0, 0, -1 }, 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); } } -- cgit v1.2.3