1
Fork 0
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:
Shannon Booth 2020-01-07 20:31:35 +13:00 committed by Andreas Kling
parent 372f9e9a11
commit 0c1bc91e88

View file

@ -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);