14 lines
299 B
Diff
14 lines
299 B
Diff
diff --git a/dwm.c b/dwm.c
|
|
index f1d86b2..dbe8a5d 100644
|
|
--- a/dwm.c
|
|
+++ b/dwm.c
|
|
@@ -833,6 +833,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
|