monitor: fix dpms toggling animations when state is unchanged (#11480)

This commit is contained in:
Aaron Tulino 2025-08-19 11:30:26 -07:00 committed by GitHub
parent 1d67987459
commit 3370a6a83d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1599,6 +1599,10 @@ bool CMonitor::attemptDirectScanout() {
}
void CMonitor::setDPMS(bool on) {
// Don't trigger animation if the target state is the same
if (m_dpmsStatus == on)
return;
m_dpmsStatus = on;
m_events.dpmsChanged.emit();