File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ WSMessageLoop& WSMessageLoop::the()
31
31
32
32
int WSMessageLoop::exec ()
33
33
{
34
- m_server_process = current;
34
+ ASSERT ( m_server_process == current) ;
35
35
36
36
m_keyboard_fd = m_server_process->sys $open (" /dev/keyboard" , O_RDONLY);
37
37
m_mouse_fd = m_server_process->sys $open (" /dev/psaux" , O_RDONLY);
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ class WSMessageLoop {
22
22
bool running () const { return m_running; }
23
23
Process& server_process () { return *m_server_process; }
24
24
25
+ void set_server_process (Process& process) { m_server_process = &process; }
26
+
25
27
private:
26
28
void wait_for_message ();
27
29
void drain_mouse ();
Original file line number Diff line number Diff line change 10
10
11
11
void WindowServer_main ()
12
12
{
13
+ WSMessageLoop::the ().set_server_process (*current);
13
14
current->set_priority (Process::HighPriority);
14
15
auto info = current->set_video_resolution (1024 , 768 );
15
16
You can’t perform that action at this time.
0 commit comments