1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

WindowServer: Read from /dev/input/mice for mouse packets

Instead of trying to acquire from an individual mouse device, let's read
from /dev/input/mice, where all mouse packets are blended together from
all mouse devices that are attached to the machine.
This commit is contained in:
Liav A 2023-10-06 22:01:49 +03:00 committed by Andrew Kaster
parent 97166a5570
commit ca2be5c51b
2 changed files with 6 additions and 6 deletions

View file

@ -31,7 +31,7 @@ private:
Core::EventLoop m_event_loop;
int m_keyboard_fd { -1 };
RefPtr<Core::Notifier> m_keyboard_notifier;
int m_mouse_fd { -1 };
int m_mice_fd { -1 };
RefPtr<Core::Notifier> m_mouse_notifier;
OwnPtr<IPC::MultiServer<ConnectionFromClient>> m_window_server;
OwnPtr<IPC::MultiServer<WMConnectionFromClient>> m_wm_server;