mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user