dpms: fix keyboard dpms

This commit is contained in:
Vaxry 2023-03-16 15:29:48 +00:00
parent 5d44ea802a
commit 96718d8b09

View file

@ -964,7 +964,7 @@ void CInputManager::onKeyboardKey(wlr_keyboard_key_event* e, SKeyboard* pKeyboar
return; return;
static auto* const PDPMS = &g_pConfigManager->getConfigValuePtr("misc:key_press_enables_dpms")->intValue; static auto* const PDPMS = &g_pConfigManager->getConfigValuePtr("misc:key_press_enables_dpms")->intValue;
if (*PDPMS && g_pCompositor->m_bDPMSStateON) { if (*PDPMS && !g_pCompositor->m_bDPMSStateON) {
// enable dpms // enable dpms
g_pKeybindManager->dpms("on"); g_pKeybindManager->dpms("on");
} }