From 6aac8e849221321f6ef8dffcf1cde0c26602dabe Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 14 Nov 2025 12:31:29 -0600 Subject: apply anysize patch for flexible window sizing Applied st-expected-anysize-0.9.diff cleanly. Benefits: - Terminal now resizes to any pixel dimension - Adds dynamic padding to bottom and right edges - Eliminates gaps when used with tiling window managers - More natural behavior with traditional left-to-right text flow --- x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x.c') diff --git a/x.c b/x.c index b69f225..d6bd4be 100644 --- a/x.c +++ b/x.c @@ -889,8 +889,8 @@ xhints(void) sizeh->flags = PSize | PResizeInc | PBaseSize | PMinSize; sizeh->height = win.h; sizeh->width = win.w; - sizeh->height_inc = win.ch; - sizeh->width_inc = win.cw; + sizeh->height_inc = 1; + sizeh->width_inc = 1; sizeh->base_height = 2 * borderpx; sizeh->base_width = 2 * borderpx; sizeh->min_height = win.ch + 2 * borderpx; -- cgit v1.2.3