mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibGUI+WindowServer: Remove InputPreemptor concept
This functionality will be superceded by WindowType:Popups
This commit is contained in:
parent
5d567565a4
commit
3027cf7e99
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/thankyouverycool
Commit: 3027cf7e99
Pull-request: https://github.com/SerenityOS/serenity/pull/16098
13 changed files with 0 additions and 53 deletions
|
@ -355,16 +355,6 @@ void MenuManager::set_current_menu(Menu* menu)
|
|||
}
|
||||
|
||||
m_current_menu = menu;
|
||||
|
||||
auto& wm = WindowManager::the();
|
||||
if (auto* window = wm.active_input_window()) {
|
||||
InputPreemptor preemptor { InputPreemptor::OtherMenu };
|
||||
if (window->rect().contains(m_current_menu->unadjusted_position()))
|
||||
preemptor = InputPreemptor::ContextMenu;
|
||||
else if (!m_current_menu->rect_in_window_menubar().is_null())
|
||||
preemptor = InputPreemptor::MenubarMenu;
|
||||
wm.notify_input_preempted(*window, preemptor);
|
||||
}
|
||||
}
|
||||
|
||||
Menu* MenuManager::previous_menu(Menu* current)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue