mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
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:
parent
7fb7b399a3
commit
3f35cd2f7d
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue