diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 9f527835372..58687e09304 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -364,12 +364,11 @@ void CMonitor::addDamage(const CBox* box) { bool CMonitor::shouldSkipScheduleFrameOnMouseEvent() { static auto PNOBREAK = CConfigValue("cursor:no_break_fs_vrr"); - static auto PMINRR = CConfigValue("cursor:min_refresh_rate"); + static auto PMINRR = CConfigValue("cursor:min_refresh_rate"); // skip scheduling extra frames for fullsreen apps with vrr - bool shouldSkip = *PNOBREAK - && output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED - && activeWorkspace && activeWorkspace->m_bHasFullscreenWindow && activeWorkspace->m_efFullscreenMode == FULLSCREEN_FULL; + bool shouldSkip = *PNOBREAK && output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED && activeWorkspace && activeWorkspace->m_bHasFullscreenWindow && + activeWorkspace->m_efFullscreenMode == FULLSCREEN_FULL; // keep requested minimum refresh rate if (shouldSkip && *PMINRR && lastPresentationTimer.getMillis() > 1000 / *PMINRR) {