Skip to content

Commit

Permalink
eventloop: dispatch pending in session on start
Browse files Browse the repository at this point in the history
fixes #7855 #7391
  • Loading branch information
vaxerski committed Sep 23, 2024
1 parent 6c78b03 commit d279d7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/managers/eventLoop/EventLoopManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ void CEventLoopManager::enterLoop() {
m_sWayland.aqEventSources.emplace_back(wl_event_loop_add_fd(m_sWayland.loop, fd->fd, WL_EVENT_READABLE, aquamarineFDWrite, fd.get()));
}

// if we have a session, dispatch it to get the pending input devices
if (g_pCompositor->m_pAqBackend->hasSession())
g_pCompositor->m_pAqBackend->session->dispatchPendingEventsAsync();

wl_display_run(m_sWayland.display);

Debug::log(LOG, "Kicked off the event loop! :(");
Expand Down

0 comments on commit d279d7c

Please sign in to comment.