mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 23:06:00 +01:00
Shadowing Keybinds fixes
This commit is contained in:
parent
1ddd7ee713
commit
6dc8c4b310
1 changed files with 3 additions and 2 deletions
|
@ -98,6 +98,9 @@ bool CKeybindManager::onKeyEvent(wlr_keyboard_key_event* e, SKeyboard* pKeyboard
|
|||
found = g_pKeybindManager->handleKeybinds(MODS, "", keysym, 0, true, e->time_msec) || found;
|
||||
|
||||
found = g_pKeybindManager->handleKeybinds(MODS, "", 0, KEYCODE, true, e->time_msec) || found;
|
||||
|
||||
if (found)
|
||||
shadowKeybinds();
|
||||
} else if (e->state == WL_KEYBOARD_KEY_STATE_RELEASED) {
|
||||
|
||||
m_dPressedKeycodes.erase(std::remove(m_dPressedKeycodes.begin(), m_dPressedKeycodes.end(), KEYCODE));
|
||||
|
@ -184,8 +187,6 @@ bool CKeybindManager::handleKeybinds(const uint32_t& modmask, const std::string&
|
|||
DISPATCHER->second(k.arg);
|
||||
}
|
||||
|
||||
shadowKeybinds(keysym == 0 ? 0 : keysym, keycode == -1 ? -1 : keycode);
|
||||
|
||||
found = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue