diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-12 23:11:34 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-12 23:11:34 +0200 |
| commit | bf762f566f1c8c5e9c636f0d1ad4e485ad322da9 (patch) | |
| tree | 667d1c3bf7a4f5f9c1e8bc0b5d7189ef2a760437 /src/events/Monitors.cpp | |
| parent | f9985a36b345acf3fd4f6a1ad8170a475658fb60 (diff) | |
Fix VRAM memory leak when releasing snapshots
Diffstat (limited to 'src/events/Monitors.cpp')
| -rw-r--r-- | src/events/Monitors.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp index d523aeb3..cf7e4b49 100644 --- a/src/events/Monitors.cpp +++ b/src/events/Monitors.cpp @@ -186,7 +186,6 @@ void Events::listener_monitorFrame(void* owner, void* data) { if (PMONITOR->ID == pMostHzMonitor->ID || !*PNOVFR) { // unfortunately with VFR we don't have the guarantee mostHz is going to be updated all the time, so we have to ignore that g_pCompositor->sanityCheckWorkspaces(); g_pAnimationManager->tick(); - g_pCompositor->cleanupFadingOut(); HyprCtl::tickHyprCtl(); // so that we dont get that race condition multithread bullshit @@ -229,6 +228,9 @@ void Events::listener_monitorFrame(void* owner, void* data) { return; } + // we need to cleanup fading out when rendering the appropriate context + g_pCompositor->cleanupFadingOut(PMONITOR->ID); + if (!hasChanged && *PDAMAGETRACKINGMODE != DAMAGE_TRACKING_NONE && PMONITOR->forceFullFrames == 0 && damageBlinkCleanup == 0) { pixman_region32_fini(&damage); wlr_output_rollback(PMONITOR->output); |
