mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 22:26:00 +01:00
dpms: fix keyboard dpms
This commit is contained in:
parent
5d44ea802a
commit
96718d8b09
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue