From 3d96f96ce50716d042ff5509e4374e4073a615f8 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 24 Sep 2024 00:46:29 +0100 Subject: [PATCH] e --- src/backend/Session.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backend/Session.cpp b/src/backend/Session.cpp index f2a737f..6d47aaa 100644 --- a/src/backend/Session.cpp +++ b/src/backend/Session.cpp @@ -264,8 +264,7 @@ static bool isDRMCard(const char* sysname) { } void Aquamarine::CSession::onReady() { - dispatchLibseatEvents(); - dispatchLibinputEvents(); + ; } void Aquamarine::CSession::dispatchUdevEvents() { @@ -361,7 +360,12 @@ void Aquamarine::CSession::dispatchLibseatEvents() { void Aquamarine::CSession::dispatchPendingEventsAsync() { dispatchLibseatEvents(); + + // only linux libudev allows us to asynchronously dispatch outstanding without blocking +#if defined(__linux__) dispatchUdevEvents(); +#endif + dispatchLibinputEvents(); }