framescheduler: check monitor validity in doLater

This commit is contained in:
Vaxry
2025-07-18 12:09:43 +02:00
parent a05c797e4a
commit 49abc193f7

View File

@@ -53,6 +53,8 @@ void CMonitorFrameScheduler::onPresented() {
m_pendingThird = false;
g_pEventLoopManager->doLater([m = m_monitor.lock()] {
if (!m)
return;
g_pHyprRenderer->commitPendingAndDoExplicitSync(m); // commit the pending frame. If it didn't fire yet (is not rendered) it doesn't matter. Syncs will wait.
// schedule a frame: we might have some missed damage, which got cleared due to the above commit.