mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
Only drain mouse/keyboard streams if they actually have data.
Technically we could just grab directly at the CharacterDevices like we've been doing but I'd like to stay away from in-kernel behavior like that. This should eventually become a userspace process.
This commit is contained in:
parent
d793323254
commit
1c63a37bc9
1 changed files with 2 additions and 2 deletions
|
@ -104,9 +104,9 @@ void WSEventLoop::wait_for_event()
|
|||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
//if (bitmap.get(m_keyboard_fd))
|
||||
if (bitmap.get(m_keyboard_fd))
|
||||
drain_keyboard();
|
||||
//if (bitmap.get(m_mouse_fd))
|
||||
if (bitmap.get(m_mouse_fd))
|
||||
drain_mouse();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue