1
Fork 0
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:
Andreas Kling 2019-02-13 00:19:21 +01:00
parent 4f33fb3a1a
commit 732f273949
3 changed files with 21 additions and 5 deletions

View file

@ -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;
};