From aa789b733960cd7023fc0bd7c10a38020780308e Mon Sep 17 00:00:00 2001 From: Garritt McCune Date: Sun, 18 Jul 2021 12:29:31 -0500 Subject: [PATCH] Applied 'cursorwrap' version '20210222-61bb8b2' (changing windows and monitors). --- dwm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwm.c b/dwm.c index 6b6985d..f9e2c94 100644 --- a/dwm.c +++ b/dwm.c @@ -832,6 +832,8 @@ focusmon(const Arg *arg) unfocus(selmon->sel, 0); selmon = m; focus(NULL); + if (selmon->sel) + XWarpPointer(dpy, None, selmon->sel->win, 0, 0, 0, 0, selmon->sel->w/2, selmon->sel->h/2); } void @@ -857,6 +859,7 @@ focusstack(const Arg *arg) if (c) { focus(c); restack(selmon); + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w/2, c->h/2); } }