From 3f0fd02c57328634821ce8da0e67c1d9d63cdbcc Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Thu, 19 Dec 2024 11:52:43 +0000 Subject: [PATCH] Apply minimum dimensions on restore --- src/MainWindow.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index eace3dc76e..99e50fddd9 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -508,6 +508,9 @@ namespace Terminal { default_height = geometry.height * 3 / 4; } + default_width = int.max (Application.MINIMUM_WIDTH, default_width); + default_height = int.max (Application.MINIMUM_HEIGHT, default_height); + var window_state = Terminal.Application.saved_state.get_enum ("window-state"); if (window_state == MainWindow.MAXIMIZED) { maximize ();