summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2022-06-29 03:18:47 +0200
committerSam Atkins <atkinssj@gmail.com>2022-06-29 19:11:13 +0100
commita50a48f6b4fe0a6784122f9afe35f6388075b4d5 (patch)
treee048f4b3dbca07c76b5a55280b141468a8d548f3 /Userland
parent5d25956790b1b0520f7a84475f18556dc6436986 (diff)
downloadserenity-a50a48f6b4fe0a6784122f9afe35f6388075b4d5.zip
Terminal: Repair resizing
Because the content widget gets modified when resizing, the usual way of calculating the min_size won't work for the Terminal window. So the automatic min_size calculation will be disabled for now.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/Terminal/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp
index 4d2ecd345a..bfe89e6fd2 100644
--- a/Userland/Applications/Terminal/main.cpp
+++ b/Userland/Applications/Terminal/main.cpp
@@ -292,6 +292,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto window = TRY(GUI::Window::try_create());
window->set_title("Terminal");
window->set_double_buffering_enabled(false);
+ window->set_obey_widget_min_size(false);
auto terminal = TRY(window->try_set_main_widget<VT::TerminalWidget>(ptm_fd, true));
terminal->on_command_exit = [&] {