1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +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:
Andreas Kling 2019-04-14 02:16:49 +02:00
parent 2dbece54f5
commit d5dec1922b
5 changed files with 27 additions and 6 deletions

View file

@ -22,8 +22,9 @@ public:
const WSClientConnection* client() const { return m_client; }
int menu_id() const { return m_menu_id; }
WSMenuBar* menu_bar() { return m_menubar; }
const WSMenuBar* menu_bar() const { return m_menubar; }
WSMenuBar* menubar() { return m_menubar; }
const WSMenuBar* menubar() const { return m_menubar; }
void set_menubar(WSMenuBar* menubar) { m_menubar = menubar; }
bool is_empty() const { return m_items.is_empty(); }
int item_count() const { return m_items.size(); }