mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
framescheduler: check monitor validity in doLater
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user