summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-08-17 08:37:13 +0100
committerGitHub <noreply@github.com>2025-08-17 08:37:13 +0100
commit251288ec5942b3544ad31de1299569284d80f0d7 (patch)
tree698f4dabadea8263a8d69d87dbc375185c88d4c3 /src/managers/KeybindManager.cpp
parent3d4dc19412921864c25cd25e0cbffd6e1693c43c (diff)
renderer: add dpms animations (#11452)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 5f3aac1c..ef0d3da7 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -2670,21 +2670,7 @@ SDispatchResult CKeybindManager::dpms(std::string arg) {
if (isToggle)
enable = !m->m_dpmsStatus;
- m->m_output->state->resetExplicitFences();
- m->m_output->state->setEnabled(enable);
-
- m->m_dpmsStatus = enable;
-
- if (!m->m_state.commit()) {
- Debug::log(ERR, "Couldn't commit output {}", m->m_name);
- res.success = false;
- res.error = "Couldn't commit output {}";
- }
-
- if (enable)
- g_pHyprRenderer->damageMonitor(m);
-
- m->m_events.dpmsChanged.emit();
+ m->setDPMS(enable);
}
g_pCompositor->m_dpmsStateOn = enable;