1
0
Fork 0
mirror of https://github.com/hyprwm/Hyprland synced 2025-01-08 07:49:49 +01:00

fix shadowing with doesntHave

This commit is contained in:
vaxerski 2022-07-25 16:12:06 +02:00
parent 14176f01ca
commit a0be6e19d8

View file

@ -248,22 +248,22 @@ void CKeybindManager::shadowKeybinds(const xkb_keysym_t& doesntHave, const int&
for (auto& pk : m_dPressedKeysyms) {
if ((pk == KBKEY || pk == KBKEYUPPER)) {
shadow = true;
}
if (pk == doesntHave && doesntHave != 0) {
shadow = false;
break;
if (pk == doesntHave && doesntHave != 0) {
shadow = false;
break;
}
}
}
for (auto& pk : m_dPressedKeycodes) {
if (pk == k.keycode) {
shadow = true;
}
if (pk == doesntHaveCode && doesntHaveCode != 0 && doesntHaveCode != -1) {
shadow = false;
break;
if (pk == doesntHaveCode && doesntHaveCode != 0 && doesntHaveCode != -1) {
shadow = false;
break;
}
}
}