Closed ZachIndigo closed 4 years ago
what this patch intended to do?
This patch modifies the resize hints, so that xst resizes properly in tiling window managers.
On May 9, 2020 11:50:14 PM UTC, Yauhen Kirylau notifications@github.com wrote:
what this patch intended to do?
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/gnotclub/xst/pull/85#issuecomment-626250764 -- Sent from my Android device with Librem Mail. Please excuse my brevity.
i'm using AwesomeWM, in both options of size_hints_honor
(ie true
or false
) xst
behave appropriately
if in your WM one of those two scenarios is broken, please report it to them
This is modified by me to have the anysize patch, using the patch file I generated below. `diff --git a/src/xst.c b/src/xst.c index 330ad44..7f60235 100644 --- a/src/xst.c +++ b/src/xst.c @@ -287,6 +287,7 @@ typedef struct { int gm; / geometry mask / int tw, th; / tty width and height / int w, h; / window width and height /
sizeh->width_inc = 1; sizeh->base_height = 2 borderpx; sizeh->base_width = 2 borderpx; if (xw.isfixed) { @@ -3886,8 +3889,8 @@ xinit(void) xloadcols();
/ adjust fixed window geometry /
int winx = xw.hborderpx + x xw.cw, winy = xw.vborderpx + y xw.ch, width = charlen xw.cw; Color fg, bg, temp, revfg, revbg, truefg, truebg; XRenderColor colfg, colbg; @@ -4224,7 +4227,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
/ Intelligent cleaning up of the borders. / if (x == 0) {
@@ -4355,36 +4358,36 @@ xdrawcursor(void) case 3: / Blinking Underline / case 4: / Steady Underline / XftDrawRect(xw.draw, &drawcol,