From 824ebb2d3428f4050d06bb140c98c6e23f22b5bc Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Sat, 18 Oct 2025 09:53:15 -0400 Subject: dwm.c: warp pointer when changing monitor focus. --- dwm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dwm.c b/dwm.c index 7cf1d64..9fc3021 100644 --- 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 -- cgit v1.2.3