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.
This commit is contained in:
FrHun 2022-06-29 03:18:47 +02:00 committed by Sam Atkins
commit a50a48f6b4
Notes: sideshowbarker 2024-07-17 18:13:59 +09:00

View file

@ -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 = [&] {