mirror of
https://github.com/RGBCube/serenity
synced 2025-06-18 16:52:08 +00:00
WSWindowServer: Remove uneccessary special casing
From my testing I could not see this code doing anything. Listen the FIXME, and remove this.
This commit is contained in:
parent
372f9e9a11
commit
0c1bc91e88
1 changed files with 0 additions and 6 deletions
|
@ -708,12 +708,6 @@ 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