summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-13 17:54:30 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-13 17:54:30 +0100
commit4f98a35bebdc7e39d71615aa57df33e7ebd77d20 (patch)
tree3129feadfdafbf297477d14023af921bad213c0e /Kernel/Process.h
parent96352ab735dce3fa448fe7c414ed047f1f145f81 (diff)
downloadserenity-4f98a35bebdc7e39d71615aa57df33e7ebd77d20.zip
WindowServer: Begin refactoring towards a fully asynchronous protocol.
In order to move the WindowServer to userspace, I have to eliminate its dependence on system call facilities. The communication channel with each client needs to be message-based in both directions.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index e7dfebf6b4..259f1770e3 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -230,8 +230,6 @@ public:
int gui$get_window_rect(int window_id, GUI_Rect*);
int gui$set_window_rect(int window_id, const GUI_Rect*);
int gui$set_global_cursor_tracking_enabled(int window_id, bool enabled);
- int gui$menubar_create();
- int gui$menubar_destroy(int menubar_id);
int gui$menubar_add_menu(int menubar_id, int menu_id);
int gui$menu_create(const char* name);
int gui$menu_destroy(int menu_id);
@@ -313,6 +311,8 @@ public:
bool has_used_fpu() const { return m_has_used_fpu; }
void set_has_used_fpu(bool b) { m_has_used_fpu = b; }
+ int gui_client_id() const { return (int)this; }
+
private:
friend class MemoryManager;
friend class Scheduler;
@@ -420,7 +420,6 @@ 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 };