This commit is contained in:
Vaxry 2024-09-24 00:46:29 +01:00
parent f40d6ce4ae
commit 3d96f96ce5

View file

@ -264,8 +264,7 @@ static bool isDRMCard(const char* sysname) {
} }
void Aquamarine::CSession::onReady() { void Aquamarine::CSession::onReady() {
dispatchLibseatEvents(); ;
dispatchLibinputEvents();
} }
void Aquamarine::CSession::dispatchUdevEvents() { void Aquamarine::CSession::dispatchUdevEvents() {
@ -361,7 +360,12 @@ void Aquamarine::CSession::dispatchLibseatEvents() {
void Aquamarine::CSession::dispatchPendingEventsAsync() { void Aquamarine::CSession::dispatchPendingEventsAsync() {
dispatchLibseatEvents(); dispatchLibseatEvents();
// only linux libudev allows us to asynchronously dispatch outstanding without blocking
#if defined(__linux__)
dispatchUdevEvents(); dispatchUdevEvents();
#endif
dispatchLibinputEvents(); dispatchLibinputEvents();
} }