renderer: fixup some missing fadeout cases with special

fixes some fadeout missing cases:

- closing last window
- closing above fs
- closing in general

fixes #10283
This commit is contained in:
Vaxry
2025-06-11 17:52:16 +02:00
parent 8329de1ab5
commit 412c7dc7f7
4 changed files with 47 additions and 29 deletions

View File

@@ -7,6 +7,7 @@
#include "MiscFunctions.hpp"
#include "WLClasses.hpp"
#include <array>
#include "AnimatedVariable.hpp"
#include <xf86drmMode.h>
#include "time/Timer.hpp"
@@ -161,6 +162,9 @@ class CMonitor {
PHLWINDOWREF m_lastScanout;
bool m_scanoutNeedsCursorUpdate = false;
// for special fade/blur
PHLANIMVAR<float> m_specialFade;
struct {
bool canTear = false;
bool nextRenderTorn = false;