mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
WindowServer: Always select() in the event loop.
This fixes an issue where a steady stream of injected events would prevent us from ever draining the mouse and keyboard inputs.
This commit is contained in:
parent
dff70021ab
commit
a01e119e05
Notes:
sideshowbarker
2024-07-19 16:00:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a01e119e05b
@ -45,9 +45,7 @@ int WSEventLoop::exec()
|
||||
|
||||
m_running = true;
|
||||
for (;;) {
|
||||
|
||||
if (m_queued_events.is_empty())
|
||||
wait_for_event();
|
||||
wait_for_event();
|
||||
|
||||
Vector<QueuedEvent> events;
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user