diff options
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 16 |
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; |
