monitor: fix dpms toggling animations when state is unchanged (#11480)
This commit is contained in:
parent
1d67987459
commit
3370a6a83d
1 changed files with 4 additions and 0 deletions
|
|
@ -1599,6 +1599,10 @@ bool CMonitor::attemptDirectScanout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMonitor::setDPMS(bool on) {
|
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_dpmsStatus = on;
|
||||||
m_events.dpmsChanged.emit();
|
m_events.dpmsChanged.emit();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue