mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:47:35 +00: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
1 changed files with 1 additions and 3 deletions
|
@ -45,9 +45,7 @@ int WSEventLoop::exec()
|
||||||
|
|
||||||
m_running = true;
|
m_running = true;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
wait_for_event();
|
||||||
if (m_queued_events.is_empty())
|
|
||||||
wait_for_event();
|
|
||||||
|
|
||||||
Vector<QueuedEvent> events;
|
Vector<QueuedEvent> events;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue