summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-12 10:41:09 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-12 10:41:09 +0100
commit4b8133e92554582f923b0537c2d4c9e1209b1d2a (patch)
treea83f223726773c2416e06ba54be9ff2c92a45752 /Kernel/Process.h
parentf311d0f3537c8cdcf8ef0272754d7ead90fe1217 (diff)
downloadserenity-4b8133e92554582f923b0537c2d4c9e1209b1d2a.zip
WindowServer: Clean up any menu objects on process exit.
..and now that this works, implement the Quit menu action in Terminal. :^)
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index b219cb6adb..e7dfebf6b4 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -244,6 +244,7 @@ public:
static void initialize();
static void initialize_gui_statics();
int make_window_id();
+ void destroy_all_menus();
void destroy_all_windows();
void crash() NORETURN;
@@ -419,6 +420,7 @@ private:
Vector<GUI_Event> m_gui_events;
Lock m_gui_events_lock;
int m_next_window_id { 1 };
+ bool m_has_created_menus { false };
dword m_wakeup_requested { false };
bool m_has_used_fpu { false };