commit 0bc706d59c14ca2587f6b26129721c5b6572f9e6
parent 95139e2d019509fe53fbedc54448796af2ff9c6a
Author: Finn Rayment <finn@rayment.fr>
Date: Sun, 21 Aug 2022 14:39:29 +1000
[dwm][patch][cursorwarp] Fixed null ref.
I should not have uploaded the previous commit without first adding a
proper null check. Apologies for that...
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dwm.suckless.org/patches/cursorwarp/dwm-cursorwarp-6.3.diff b/dwm.suckless.org/patches/cursorwarp/dwm-cursorwarp-6.3.diff
@@ -41,7 +41,7 @@ index a96f33c..f0e8a39 100644
focus(NULL);
updateclientlist();
arrange(m);
-+ if (m == selmon)
++ if (m == selmon && m->sel)
+ XWarpPointer(dpy, None, m->sel->win, 0, 0, 0, 0,
+ m->sel->w/2, m->sel->h/2);
}