From 9dc38e4de224c1da4502f46fab9ae568861c927f Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Mon, 24 Feb 2025 19:38:46 +0100 Subject: Allow user to influence geometry hints resize behaviour For the longest time weltschmerz has defaulted to passing width_inc and height_inc to set_geometry_hints, making it such that the window can only be resized in increments of the cell size. Whilst this is advantageous with floating windows, once weltschmerz is forced into a specific geometry (e.g. when put into a tiling context), the window manager or compositor will have to accept weltschmerz's geometry hints and make the window smaller than the space allotted for it. Since some people care about pixel-perfect alignment for their tiled windows, make this behaviour controllable by introducing a new 'resize-hints' setting. To remain backwards-compatible, this setting is true by default, but when switched off, weltschmerz will stop setting the width_inc and height_inc geometry hints, making it freely resizable by adding dynamic padding around the terminal's viewport. Co-authored-by: Juhani Krekelä --- weltschmerz.de.1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'weltschmerz.de.1') diff --git a/weltschmerz.de.1 b/weltschmerz.de.1 index e2e6d2a..3a8dec7 100644 --- a/weltschmerz.de.1 +++ b/weltschmerz.de.1 @@ -220,6 +220,18 @@ so wird lediglich herangezogen. Der Standardwert ist .Sy true . +.It Sy resize-hints +Ist der Wert +.Sy true , +zeigt +.Nm +dem Fenstermanager an, dass die Fenstergröße nur schrittweise um ein +Vielfaches der Zellgröße verändert werden sollte. +Ist der Wert +.Sy false , +so lässt sich das Fenster frei vergößern. +Der Standardwert ist +.Sy true . .El .Pp Die Schlüsselgruppe -- cgit v1.2.3-2-gb3c3