diff --git a/dwm.c b/dwm.c index e5efb6a..a126648 100644 --- a/dwm.c +++ b/dwm.c @@ -834,6 +834,8 @@ focusmon(const Arg *arg) unfocus(selmon->sel, 0); selmon = m; focus(NULL); + XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->wx + selmon->ww / 2, + selmon->wy + selmon->wh / 2); } void