diff options
| author | Aaron Tulino <git@aaronjamt.com> | 2025-08-19 11:30:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 19:30:26 +0100 |
| commit | 3370a6a83d0f3269edd59ffd17ef7765273a0d5a (patch) | |
| tree | 00f7890dd80af166b5fd9398be9a34b182981a18 /src/helpers/Monitor.cpp | |
| parent | 1d679874591c7848794b83f1d8bfe245772c11d2 (diff) | |
monitor: fix dpms toggling animations when state is unchanged (#11480)
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index a84c4c64..10897cad 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -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(); |
