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:
parent
5d25956790
commit
a50a48f6b4
1 changed files with 1 additions and 0 deletions
|
@ -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 = [&] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue