Skip to content

Commit ae09621

Browse files
committed
do updates on every mon update if VFR is enabled
1 parent 7ff427c commit ae09621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/Monitors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
184184

185185
// Hack: only check when monitor with top hz refreshes, saves a bit of resources.
186186
// This is for stuff that should be run every frame
187-
if (PMONITOR->ID == pMostHzMonitor->ID) {
187+
if (PMONITOR->ID == pMostHzMonitor->ID || *VFRENABLED) { // unfortunately with VFR we don't have the guarantee mostHz is going to be updated all the time, so we have to ignore that
188188
g_pCompositor->sanityCheckWorkspaces();
189189
g_pAnimationManager->tick();
190190
g_pCompositor->cleanupFadingOut();

0 commit comments

Comments
 (0)