mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-09 16:29:48 +01:00
fix shadowing with doesntHave
This commit is contained in:
parent
14176f01ca
commit
a0be6e19d8
1 changed files with 9 additions and 9 deletions
|
@ -248,24 +248,24 @@ void CKeybindManager::shadowKeybinds(const xkb_keysym_t& doesntHave, const int&
|
||||||
for (auto& pk : m_dPressedKeysyms) {
|
for (auto& pk : m_dPressedKeysyms) {
|
||||||
if ((pk == KBKEY || pk == KBKEYUPPER)) {
|
if ((pk == KBKEY || pk == KBKEYUPPER)) {
|
||||||
shadow = true;
|
shadow = true;
|
||||||
}
|
|
||||||
|
|
||||||
if (pk == doesntHave && doesntHave != 0) {
|
if (pk == doesntHave && doesntHave != 0) {
|
||||||
shadow = false;
|
shadow = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& pk : m_dPressedKeycodes) {
|
for (auto& pk : m_dPressedKeycodes) {
|
||||||
if (pk == k.keycode) {
|
if (pk == k.keycode) {
|
||||||
shadow = true;
|
shadow = true;
|
||||||
}
|
|
||||||
|
|
||||||
if (pk == doesntHaveCode && doesntHaveCode != 0 && doesntHaveCode != -1) {
|
if (pk == doesntHaveCode && doesntHaveCode != 0 && doesntHaveCode != -1) {
|
||||||
shadow = false;
|
shadow = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
k.shadowed = shadow;
|
k.shadowed = shadow;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue