WindowServer: Remove redundant Window::set_visible() in Menu::do_popup()

We're already calling MenuManager::open_menu(), which will take care of
making the menu window visible if needed.
This commit is contained in:
Andreas Kling 2021-11-05 00:53:40 +01:00
commit 239520ae54
Notes: sideshowbarker 2024-07-18 01:28:54 +09:00

View file

@ -638,7 +638,6 @@ void Menu::do_popup(const Gfx::IntPoint& position, bool make_input, bool as_subm
}
window.move_to(adjusted_pos);
set_visible(true);
MenuManager::the().open_menu(*this, make_input);
WindowManager::the().did_popup_a_menu({});
}