From 6e223a54454d9e9fb962d46875c496c05bc52faa Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 23 Jun 2021 12:52:59 -0400 Subject: [PATCH] Apply cursorwarp patch --- dwm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwm.c b/dwm.c index 166e19c..c15a0c4 100644 --- a/dwm.c +++ b/dwm.c @@ -903,6 +903,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 @@ -928,6 +930,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); } } -- 2.39.2