st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit 4d4a5ed5651c15c6f0f9358c377a127ed6e7b498
parent dc8abceecaa18c064c23b5296f74a3c55dce2cca
Author: Stein Gunnar Bakkeby <bakkeby@gmail.com>
Date:   Mon, 18 Jul 2022 11:46:42 +0200

Merge pull request #75 from veltza/fix-anysize-borders

Fix border issues in the anysize patch
Diffstat:
Mx.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x.c b/x.c @@ -1924,7 +1924,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i /* Intelligent cleaning up of the borders. */ #if ANYSIZE_PATCH if (x == 0) { - xclear(0, (y == 0)? 0 : winy, win.vborderpx, + xclear(0, (y == 0)? 0 : winy, win.hborderpx, winy + win.ch + ((winy + win.ch >= win.vborderpx + win.th)? win.h : 0)); } @@ -1933,7 +1933,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i ((winy + win.ch >= win.vborderpx + win.th)? win.h : (winy + win.ch))); } if (y == 0) - xclear(winx, 0, winx + width, win.hborderpx); + xclear(winx, 0, winx + width, win.vborderpx); if (winy + win.ch >= win.vborderpx + win.th) xclear(winx, winy + win.ch, winx + width, win.h); #else