mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibVT: Make TerminalWidget's automatic size policy updates optional
When embedding a TerminalWidget, you might not want it to automatically update its own size policy based on the exact terminal buffer size. This behavior is now passed as a flag to the TerminalWidget constructor which makes it behave nicely both inside HackStudio and in Terminal.
This commit is contained in:
parent
43ccb28852
commit
da0958a882
4 changed files with 10 additions and 6 deletions
|
@ -86,7 +86,7 @@ TerminalWrapper::TerminalWrapper(GWidget* parent)
|
|||
run_command(ptm_fd, "/bin/Shell");
|
||||
|
||||
RefPtr<CConfigFile> config = CConfigFile::get_for_app("Terminal");
|
||||
m_terminal_widget = TerminalWidget::construct(ptm_fd, config);
|
||||
m_terminal_widget = TerminalWidget::construct(ptm_fd, false, config);
|
||||
add_child(*m_terminal_widget);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue