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.
This commit is contained in:
Andreas Kling 2019-02-12 08:39:19 +01:00
commit 15b4c9f9f1
Notes: sideshowbarker 2024-07-19 15:46:55 +09:00
7 changed files with 43 additions and 39 deletions

View file

@ -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())
{
}