mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-20 14:44:43 +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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user