1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:18:12 +00:00

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

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;
}