summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorJake Koroman <jake@jakekoroman.com>2025-10-18 09:53:15 -0400
committerJake Koroman <jake@jakekoroman.com>2025-10-18 09:53:15 -0400
commit824ebb2d3428f4050d06bb140c98c6e23f22b5bc (patch)
tree22d8f6711fcf2f1f598487df768b8d534d3ceec9 /dwm.c
parent8ae941a88f59468d1bc753f6b903a8d579f25419 (diff)
dwm.c: warp pointer when changing monitor focus.
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c1
1 files changed, 1 insertions, 0 deletions
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