diff options
author | Aylur <[email protected]> | 2025-02-06 20:35:41 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2025-02-06 20:35:41 +0100 |
commit | 173e35fb3b4e2e219524e1232e93683283e8fe81 (patch) | |
tree | 051b884402c988e62d3d38bc552cfa947fd08ddb /lib | |
parent | c0eaca24dc7bc9f0091def5a37b14173e5bfd29e (diff) |
fix(window): auto shrink gtk4 windows
by setting default sizes to 1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/astal/gtk4/src/widget/window.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/astal/gtk4/src/widget/window.vala b/lib/astal/gtk4/src/widget/window.vala index 3b0d113..9df6929 100644 --- a/lib/astal/gtk4/src/widget/window.vala +++ b/lib/astal/gtk4/src/widget/window.vala @@ -71,6 +71,11 @@ public class Astal.Window : Gtk.Window { // It won't show up later either when it size changes by adding children. height_request = 1; width_request = 1; + + // When children get redrawn with a smaller size, the window won't + // shrink automatically so we set default_size to force it to. + default_height = 1; + default_width = 1; check("initialize layer shell"); } |