diff options
| author | Darksome <dev@darkso.me> | 2022-07-16 15:28:17 +0300 |
|---|---|---|
| committer | Darksome <dev@darkso.me> | 2022-07-16 15:28:17 +0300 |
| commit | ce9efb7ae38acb84d72035e6b4a772a6fe5e9319 (patch) | |
| tree | ac6d0312df8c4aefcea6b86a2b9150927b2a1934 /src/managers/input/InputManager.cpp | |
| parent | 2ae088d63102cf7c0281157c1845d27e3502048e (diff) | |
Impl changeworkspace(e+{n})
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 55890abc..c7fcfb7a 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -630,12 +630,10 @@ void CInputManager::onKeyboardKey(wlr_keyboard_key_event* e, SKeyboard* pKeyboar bool found = false; if (e->state == WL_KEYBOARD_KEY_STATE_PRESSED) { - static const std::string empty = ""; - for (int i = 0; i < syms; ++i) - found = g_pKeybindManager->handleKeybinds(MODS, empty, keysyms[i], 0) || found; + found = g_pKeybindManager->handleKeybinds(MODS, "", keysyms[i], 0) || found; - found = g_pKeybindManager->handleKeybinds(MODS, empty, 0, KEYCODE) || found; + found = g_pKeybindManager->handleKeybinds(MODS, "", 0, KEYCODE) || found; } else if (e->state == WL_KEYBOARD_KEY_STATE_RELEASED) { // hee hee } |
