summaryrefslogtreecommitdiff
path: root/WindowServer/WSMessageLoop.h
diff options
context:
space:
mode:
Diffstat (limited to 'WindowServer/WSMessageLoop.h')
-rw-r--r--WindowServer/WSMessageLoop.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/WindowServer/WSMessageLoop.h b/WindowServer/WSMessageLoop.h
index 338bf6c63e..0bf69bd461 100644
--- a/WindowServer/WSMessageLoop.h
+++ b/WindowServer/WSMessageLoop.h
@@ -1,14 +1,12 @@
#pragma once
#include "WSMessage.h"
-#include <AK/Lock.h>
#include <AK/HashMap.h>
#include <AK/OwnPtr.h>
#include <AK/Vector.h>
#include <AK/Function.h>
class WSMessageReceiver;
-class Process;
struct WSAPI_ClientMessage;
struct WSAPI_ServerMessage;
@@ -24,9 +22,6 @@ public:
static WSMessageLoop& the();
bool running() const { return m_running; }
- Process& server_process() { return *m_server_process; }
-
- void set_server_process(Process& process) { m_server_process = &process; }
int start_timer(int ms, Function<void()>&&);
int stop_timer(int timer_id);
@@ -34,23 +29,19 @@ public:
void post_message_to_client(int client_id, const WSAPI_ServerMessage&);
void on_receive_from_client(int client_id, const WSAPI_ClientMessage&);
- static Process* process_from_client_id(int client_id);
- void notify_client_died(int client_id);
+ void notify_client_disconnected(int client_id);
private:
void wait_for_message();
void drain_mouse();
void drain_keyboard();
- Lock m_lock;
-
struct QueuedMessage {
WSMessageReceiver* receiver { nullptr };
OwnPtr<WSMessage> message;
};
Vector<QueuedMessage> m_queued_messages;
- Process* m_server_process { nullptr };
bool m_running { false };
int m_keyboard_fd { -1 };