mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibGUI+WindowServer: Remove InputPreemptor concept
This functionality will be superceded by WindowType:Popups
This commit is contained in:
parent
5d567565a4
commit
3027cf7e99
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