summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-14 12:31:29 -0600
committerCraig Jennings <c@cjennings.net>2025-11-14 12:31:29 -0600
commit6aac8e849221321f6ef8dffcf1cde0c26602dabe (patch)
treeb108c823beabba545ff10c933abf7eb5299d61aa
parentff997a5ff2e561fbeac590b590bd8e7c6d2a920b (diff)
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
-rw-r--r--patches_applied/st-expected-anysize-0.9.diff15
-rw-r--r--x.c4
2 files changed, 17 insertions, 2 deletions
diff --git a/patches_applied/st-expected-anysize-0.9.diff b/patches_applied/st-expected-anysize-0.9.diff
new file mode 100644
index 0000000..e3479de
--- /dev/null
+++ b/patches_applied/st-expected-anysize-0.9.diff
@@ -0,0 +1,15 @@
+diff --git a/x.c b/x.c
+index aa09997..ea6e016 100644
+--- a/x.c
++++ b/x.c
+@@ -869,8 +869,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;
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;