[wiki] [sites] [dwm][patches][noborderflicker] Add missed NULL check, whoops || Chris Down

From: <git_AT_suckless.org>
Date: Fri, 31 Dec 2021 02:37:48 +0100

commit c3b1e6024531917cddec454e9e1abeae7ac312cb
Author: Chris Down <chris_AT_chrisdown.name>
Date: Fri Dec 31 01:37:08 2021 +0000

    [dwm][patches][noborderflicker] Add missed NULL check, whoops

diff --git a/dwm.suckless.org/patches/noborderflicker/dwm-noborderflicker-20211227-8657affa2a61.diff b/dwm.suckless.org/patches/noborderflicker/dwm-noborderflicker-20211227-8657affa2a61.diff
index c4369f2c..df2aeb3a 100644
--- a/dwm.suckless.org/patches/noborderflicker/dwm-noborderflicker-20211227-8657affa2a61.diff
+++ b/dwm.suckless.org/patches/noborderflicker/dwm-noborderflicker-20211227-8657affa2a61.diff
_AT_@ -1,5 +1,5 @@
 diff --git dwm.c dwm.c
-index a96f33c..3fd4a88 100644
+index a96f33c..34d1321 100644
 --- dwm.c
 +++ dwm.c
 _AT_@ -236,6 +236,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee);
_AT_@ -17,7 +17,7 @@ index a96f33c..3fd4a88 100644
 + /* set new focused border first to avoid flickering */
                  XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel);
 + /* lastfocused may be us if another window was unmanaged */
-+ if (lastfocused != c)
++ if (lastfocused && lastfocused != c)
 + XSetWindowBorder(dpy, lastfocused->win, scheme[SchemeNorm][ColBorder].pixel);
                  setfocus(c);
          } else {
Received on Fri Dec 31 2021 - 02:37:48 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 31 2021 - 02:48:42 CET