diff options
author | Vaxry <[email protected]> | 2024-09-24 00:49:29 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-09-24 00:49:29 +0100 |
commit | d279d7c4c6fe27c1944d8e9b51c4730612c8a9ae (patch) | |
tree | ecd9b51b52c40949993dc970afb28c5029fe5320 | |
parent | 6c78b03bb7810e074d21d5c41f088bd317c28906 (diff) | |
download | Hyprland-d279d7c4c6fe27c1944d8e9b51c4730612c8a9ae.tar.gz Hyprland-d279d7c4c6fe27c1944d8e9b51c4730612c8a9ae.zip |
eventloop: dispatch pending in session on start
fixes #7855 #7391
-rw-r--r-- | src/managers/eventLoop/EventLoopManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/eventLoop/EventLoopManager.cpp b/src/managers/eventLoop/EventLoopManager.cpp index e9b0fa3e..081268c3 100644 --- a/src/managers/eventLoop/EventLoopManager.cpp +++ b/src/managers/eventLoop/EventLoopManager.cpp @@ -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! :("); |