mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:48:11 +00:00
WindowServer: Make menu windows inherently modal.
It was confusing that you could interact with other windows with a menu up.
This commit is contained in:
parent
2dbece54f5
commit
d5dec1922b
5 changed files with 27 additions and 6 deletions
|
@ -197,7 +197,7 @@ void WSClientConnection::handle_request(const WSAPIAddMenuToMenubarRequest& requ
|
|||
}
|
||||
auto& menubar = *(*it).value;
|
||||
auto& menu = *(*jt).value;
|
||||
menubar.add_menu(&menu);
|
||||
menubar.add_menu(menu);
|
||||
WSAPI_ServerMessage response;
|
||||
response.type = WSAPI_ServerMessage::Type::DidAddMenuToMenubar;
|
||||
response.menu.menubar_id = menubar_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue