diff options
Diffstat (limited to 'Servers')
-rw-r--r-- | Servers/WindowServer/WSWindowManager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp index c913bd3e45..b49e217865 100644 --- a/Servers/WindowServer/WSWindowManager.cpp +++ b/Servers/WindowServer/WSWindowManager.cpp @@ -708,6 +708,12 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& hovere deliver_mouse_event(*window, translated_event); } + // FIXME: Now that the menubar has a dedicated window, is this special-casing really necessary? + if (!active_window_is_modal() && menubar_rect().contains(event.position())) { + m_menu_manager.dispatch_event(event); + return; + } + if (!menu_manager().open_menu_stack().is_empty()) { auto* topmost_menu = menu_manager().open_menu_stack().last().ptr(); ASSERT(topmost_menu); |