renderer: add dpms animations (#11452)

This commit is contained in:
Vaxry 2025-08-17 08:37:13 +01:00 committed by GitHub
parent 3d4dc19412
commit 251288ec59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 64 additions and 15 deletions

View file

@ -181,6 +181,10 @@ class CMonitor {
// for special fade/blur
PHLANIMVAR<float> m_specialFade;
// for dpms off anim
PHLANIMVAR<float> m_dpmsBlackOpacity;
bool m_pendingDpmsAnimation = false;
PHLANIMVAR<float> m_cursorZoom;
// for initial zoom anim
@ -232,6 +236,7 @@ class CMonitor {
bool attemptDirectScanout();
void setCTM(const Mat3x3& ctm);
void onCursorMovedOnMonitor();
void setDPMS(bool on);
void debugLastPresentation(const std::string& message);
@ -259,6 +264,7 @@ class CMonitor {
private:
void setupDefaultWS(const SMonitorRule&);
WORKSPACEID findAvailableDefaultWS();
void commitDPMSState(bool state);
bool m_doneScheduled = false;
std::stack<WORKSPACEID> m_prevWorkSpaces;