commit 824ebb2d3428f4050d06bb140c98c6e23f22b5bc
parent 8ae941a88f59468d1bc753f6b903a8d579f25419
Author: Jake Koroman <jake@jakekoroman.com>
Date: Sat, 18 Oct 2025 09:53:15 -0400
dwm.c: warp pointer when changing monitor focus.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -891,6 +891,7 @@ focusmon(const Arg *arg)
unfocus(selmon->sel, 0);
selmon = m;
focus(NULL);
+ XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->mx + selmon->mw/2, selmon->my + selmon->mh/2);
}
void