1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

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
parent 5d25956790
commit a50a48f6b4

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