mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +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
|
@ -13,7 +13,11 @@ public:
|
|||
WSClientConnection& client() { return m_client; }
|
||||
const WSClientConnection& client() const { return m_client; }
|
||||
int menubar_id() const { return m_menubar_id; }
|
||||
void add_menu(WSMenu* menu) { m_menus.append(menu); }
|
||||
void add_menu(WSMenu& menu)
|
||||
{
|
||||
menu.set_menubar(this);
|
||||
m_menus.append(&menu);
|
||||
}
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_menu(Callback callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue