Skip to content

Commit

Permalink
Apply minimum dimensions on restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored and Jeremy Wootten committed Dec 19, 2024
1 parent 91b93d8 commit 3f0fd02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 3f0fd02

Please sign in to comment.