[wiki] [sites] [dwm][patch][cursorwarp] Fixed null ref. || Finn Rayment

From: <git_AT_suckless.org>
Date: Sun, 21 Aug 2022 06:40:39 +0200

commit 0bc706d59c14ca2587f6b26129721c5b6572f9e6
Author: Finn Rayment <finn_AT_rayment.fr>
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
_AT_@ -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);
  }
Received on Sun Aug 21 2022 - 06:40:39 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 21 2022 - 06:48:48 CEST