From 6069051ca159fb1f382fec779546a4ff8cbd27bd Mon Sep 17 00:00:00 2001 From: _N0x Date: Sat, 29 Jan 2022 19:32:57 +0100 Subject: [PATCH] Created patch to fix issues with boders not being cleared correctly due to the anysize patch being used --- st-0.8.4/patches/st-anysize-xclear-fix.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 st-0.8.4/patches/st-anysize-xclear-fix.patch diff --git a/st-0.8.4/patches/st-anysize-xclear-fix.patch b/st-0.8.4/patches/st-anysize-xclear-fix.patch new file mode 100644 index 0000000..d6b8804 --- /dev/null +++ b/st-0.8.4/patches/st-anysize-xclear-fix.patch @@ -0,0 +1,17 @@ +diff --git a/x.c b/x.c +index 65cae94..096471c 100644 +--- a/x.c ++++ b/x.c +@@ -1501,6 +1501,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i + if (winy + win.ch >= win.vborderpx + win.th) + xclear(winx, winy + win.ch, winx + width, win.h); + ++ /* Clear border for anysize patch */ ++ xclear(0, 0, win.w, win.vborderpx); ++ xclear(0, 0, win.hborderpx, win.h); ++ xclear(0, win.h - win.vborderpx, win.w, win.vborderpx); ++ xclear(win.w - win.hborderpx, 0, win.hborderpx, win.h); ++ + /* Clean up the region we want to draw to. */ + XftDrawRect(xw.draw, bg, winx, winy, width, win.ch); +