commit c3b1e6024531917cddec454e9e1abeae7ac312cb
parent 131bf5fe9e1dd6697fdb26037ade243d2ff72d9f
Author: Chris Down <chris@chrisdown.name>
Date: Fri, 31 Dec 2021 01:37:08 +0000
[dwm][patches][noborderflicker] Add missed NULL check, whoops
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dwm.suckless.org/patches/noborderflicker/dwm-noborderflicker-20211227-8657affa2a61.diff b/dwm.suckless.org/patches/noborderflicker/dwm-noborderflicker-20211227-8657affa2a61.diff
@@ -1,5 +1,5 @@
diff --git dwm.c dwm.c
-index a96f33c..3fd4a88 100644
+index a96f33c..34d1321 100644
--- dwm.c
+++ dwm.c
@@ -236,6 +236,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee);
@@ -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 {