mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:57:44 +00:00
WindowServer: Walk the open menu stack in reverse on MouseMove events
Fixes lower level menus stealing focus from higher submenus.
This commit is contained in:
parent
e87eb97e68
commit
63b8d04100
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ void MenuManager::handle_mouse_event(MouseEvent& mouse_event)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mouse_event.type() == Event::MouseMove) {
|
if (mouse_event.type() == Event::MouseMove) {
|
||||||
for (auto& menu : m_open_menu_stack) {
|
for (auto& menu : m_open_menu_stack.in_reverse()) {
|
||||||
if (!menu)
|
if (!menu)
|
||||||
continue;
|
continue;
|
||||||
if (!menu->menu_window()->rect().contains(mouse_event.position()))
|
if (!menu->menu_window()->rect().contains(mouse_event.position()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue