commit 0bc706d59c14ca2587f6b26129721c5b6572f9e6
Author: Finn Rayment <[email protected]>
Date:   Sun Aug 21 14:39:29 2022 +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...

diff --git a/dwm.suckless.org/patches/cursorwarp/dwm-cursorwarp-6.3.diff 
b/dwm.suckless.org/patches/cursorwarp/dwm-cursorwarp-6.3.diff
index c9c18d87..39be99d0 100644
--- 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);
  }


Reply via email to