mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 06:25:58 +01:00
dpms: fix key_press_enables_dpms
This commit is contained in:
parent
cee7f11d8b
commit
3e261b1fa7
1 changed files with 1 additions and 1 deletions
|
@ -963,7 +963,7 @@ void CInputManager::onKeyboardKey(wlr_keyboard_key_event* e, SKeyboard* pKeyboar
|
||||||
if (!pKeyboard->enabled)
|
if (!pKeyboard->enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
static auto* const PDPMS = &g_pConfigManager->getConfigValuePtr("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