diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 10:49:59 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 10:49:59 +0100 |
commit | 2733a788ebe0d9cac08f6ca489a221b69a4136c5 (patch) | |
tree | c253bd50961f9c5843a0369e0113f52e599d320c /WindowServer/WSMenuBar.h | |
parent | 7723c06f27c514e1f7cc6200a490d465858d28b5 (diff) | |
download | serenity-2733a788ebe0d9cac08f6ca489a221b69a4136c5.zip |
WindowServer: Make MenuBar unaware of Process.
Diffstat (limited to 'WindowServer/WSMenuBar.h')
-rw-r--r-- | WindowServer/WSMenuBar.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/WindowServer/WSMenuBar.h b/WindowServer/WSMenuBar.h index 285aa8d067..da209e9b9d 100644 --- a/WindowServer/WSMenuBar.h +++ b/WindowServer/WSMenuBar.h @@ -5,15 +5,13 @@ #include <AK/Weakable.h> #include <AK/WeakPtr.h> -class Process; - class WSMenuBar : public Weakable<WSMenuBar> { public: - WSMenuBar(int menubar_id, Process&); + WSMenuBar(int client_id, int menubar_id); ~WSMenuBar(); + int client_id() const { return m_client_id; } int menubar_id() const { return m_menubar_id; } - const Process* process() const { return m_process.ptr(); } void add_menu(WSMenu* menu) { m_menus.append(menu); } template<typename Callback> @@ -26,7 +24,7 @@ public: } private: + int m_client_id { 0 }; int m_menubar_id { 0 }; - WeakPtr<Process> m_process; Vector<WSMenu*> m_menus; }; |