WSWindowServer: Only close menubar on a mouse down

This allows you to click on the menu, then use the menu keys to browse
the menu. Beforehand, you would click the window, release the button,
and the menu would close :(
This commit is contained in:
Shannon Booth 2020-01-07 21:44:10 +13:00 committed by Andreas Kling
parent 7fb7b399a3
commit 3f35cd2f7d
Notes: sideshowbarker 2024-07-19 10:16:23 +09:00

View File

@ -733,8 +733,11 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& hovere
return;
}
}
m_menu_manager.close_bar();
topmost_menu->set_window_menu_open(false);
if (event.type() == WSEvent::MouseDown) {
m_menu_manager.close_bar();
topmost_menu->set_window_menu_open(false);
}
}
if (event.type() == WSEvent::MouseMove) {