Shadowing Keybinds fixes

This commit is contained in:
vaxerski 2022-07-24 14:35:58 +02:00
parent 1ddd7ee713
commit 6dc8c4b310

View file

@ -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;
}