WindowServer: Set the WSMessageLoop::server_process() as early as possible.

This commit is contained in:
Andreas Kling 2019-02-08 09:47:57 +01:00
commit 004aad0995
Notes: sideshowbarker 2024-07-19 15:49:39 +09:00
3 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,7 @@ WSMessageLoop& WSMessageLoop::the()
int WSMessageLoop::exec()
{
m_server_process = current;
ASSERT(m_server_process == current);
m_keyboard_fd = m_server_process->sys$open("/dev/keyboard", O_RDONLY);
m_mouse_fd = m_server_process->sys$open("/dev/psaux", O_RDONLY);