mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
WindowServer: Switch menubar based on the currently active window.
This commit is contained in:
parent
4f33fb3a1a
commit
732f273949
3 changed files with 21 additions and 5 deletions
|
@ -30,6 +30,7 @@ public:
|
|||
void notify_rect_changed(WSWindow&, const Rect& oldRect, const Rect& newRect);
|
||||
|
||||
WSWindow* active_window() { return m_active_window.ptr(); }
|
||||
const Process* active_process() const;
|
||||
|
||||
void move_to_front(WSWindow&);
|
||||
|
||||
|
@ -152,4 +153,5 @@ private:
|
|||
WSMenu* m_current_menu { nullptr };
|
||||
HashMap<int, OwnPtr<WSMenuBar>> m_menubars;
|
||||
HashMap<int, OwnPtr<WSMenu>> m_menus;
|
||||
HashMap<const Process*, WSMenuBar*> m_app_menubars;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue