summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-25 16:12:06 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-25 16:12:06 +0200
commita0be6e19d8b381d93cfcc614cfa93fb2f6a8e615 (patch)
tree8a0e869f497c6aa6247c69df334ef7b33115385e /src/managers/KeybindManager.cpp
parent14176f01ca5c584cc17db2dea3d0968c05d8cc01 (diff)
fix shadowing with doesntHave
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index af39a95a..45a35b22 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -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;
+ }
}
}