diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 08:39:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 08:39:19 +0100 |
commit | 15b4c9f9f116560505ebb6b4c7aaef15e49d7406 (patch) | |
tree | 15591932e3f4cd2b8a98296290c081af291422fe /WindowServer/WSMenuBar.cpp | |
parent | 133706d697b7e7441a7f4968b5a52dfc0323d34b (diff) | |
download | serenity-15b4c9f9f116560505ebb6b4c7aaef15e49d7406.zip |
WindowServer: More work on the menu system.
Menus are now tied to a Process (by WeakPtr.) This will allow us to pass
notifications to the correct event stream.
Diffstat (limited to 'WindowServer/WSMenuBar.cpp')
-rw-r--r-- | WindowServer/WSMenuBar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WindowServer/WSMenuBar.cpp b/WindowServer/WSMenuBar.cpp index 80e6db9546..f8aa83dff8 100644 --- a/WindowServer/WSMenuBar.cpp +++ b/WindowServer/WSMenuBar.cpp @@ -1,8 +1,10 @@ #include "WSMenuBar.h" #include "WSMenu.h" #include "WSMenuItem.h" +#include <Kernel/Process.h> -WSMenuBar::WSMenuBar() +WSMenuBar::WSMenuBar(Process& process) + : m_process(process.make_weak_ptr()) { } |