mirror of
https://github.com/RGBCube/serenity
synced 2025-06-18 21:02:07 +00:00
Revert "WSWindowServer: Remove uneccessary special casing"
This reverts commit 0c1bc91e88
.
It turns out this is what made it possible to hover "between" different
menus after opening one of them with a click.
This commit is contained in:
parent
fe1bf067b8
commit
50fa759806
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue