mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
committed by
Andreas Kling
parent
e87eb97e68
commit
63b8d04100
@@ -197,7 +197,7 @@ void MenuManager::handle_mouse_event(MouseEvent& mouse_event)
|
||||
}
|
||||
|
||||
if (mouse_event.type() == Event::MouseMove) {
|
||||
for (auto& menu : m_open_menu_stack) {
|
||||
for (auto& menu : m_open_menu_stack.in_reverse()) {
|
||||
if (!menu)
|
||||
continue;
|
||||
if (!menu->menu_window()->rect().contains(mouse_event.position()))
|
||||
|
||||
Reference in New Issue
Block a user