From a0be6e19d8b381d93cfcc614cfa93fb2f6a8e615 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:12:06 +0200 Subject: [PATCH] fix shadowing with doesntHave --- src/managers/KeybindManager.cpp | 18 +++++++++--------- 1 file 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; + } } }