mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
WindowServer: Stop exposing open_menu_stack in MenuManager
The open menu stack is an internal data structure that outside classes shouldn't really need to know about. Add MenuManager::has_open_menu() so that the WindowManager can still know whether a menu is open or not.
This commit is contained in:
parent
238b6871e0
commit
088d7be19c
3 changed files with 7 additions and 8 deletions
|
@ -45,8 +45,7 @@ public:
|
|||
void refresh();
|
||||
|
||||
bool is_open(const Menu&) const;
|
||||
|
||||
Vector<WeakPtr<Menu>>& open_menu_stack() { return m_open_menu_stack; }
|
||||
bool has_open_menu() const { return !m_open_menu_stack.is_empty(); }
|
||||
|
||||
Gfx::Rect menubar_rect() const;
|
||||
static int menubar_menu_margin() { return 16; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue