summaryrefslogtreecommitdiff
path: root/Userland/Applications/Terminal/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Terminal/main.cpp')
-rw-r--r--Userland/Applications/Terminal/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp
index 1866973673..481fcc1ad8 100644
--- a/Userland/Applications/Terminal/main.cpp
+++ b/Userland/Applications/Terminal/main.cpp
@@ -170,8 +170,8 @@ static ErrorOr<void> run_command(String command, bool keep_open)
static ErrorOr<NonnullRefPtr<GUI::Window>> create_find_window(VT::TerminalWidget& terminal)
{
- auto window = TRY(GUI::Window::try_create());
- window->set_window_type(GUI::WindowType::ToolWindow);
+ auto window = TRY(GUI::Window::try_create(&terminal));
+ window->set_window_mode(GUI::WindowMode::RenderAbove);
window->set_title("Find in Terminal");
window->set_resizable(false);
window->resize(300, 90);
@@ -416,10 +416,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
})));
TRY(help_menu->try_add_action(GUI::CommonActions::make_about_action("Terminal", app_icon, window)));
- window->on_close = [&]() {
- find_window->close();
- };
-
window->on_close_request = [&]() -> GUI::Window::CloseRequestDecision {
if (check_terminal_quit() == GUI::MessageBox::ExecResult::OK)
return GUI::Window::CloseRequestDecision::Close;