WindowServer: Send all mouse events inside the menubar rect to the menubar.

This commit is contained in:
Andreas Kling 2019-02-12 10:46:27 +01:00
parent e03af1e8b9
commit 7def86c86d
Notes: sideshowbarker 2024-07-19 15:46:36 +09:00

View file

@ -482,7 +482,7 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event)
window->on_message(*local_event);
}
if (m_current_menubar && menubar_rect().contains(event.position())) {
if (menubar_rect().contains(event.position())) {
handle_menubar_mouse_event(*m_current_menubar, event);
return;
}