From ce9efb7ae38acb84d72035e6b4a772a6fe5e9319 Mon Sep 17 00:00:00 2001 From: Darksome Date: Sat, 16 Jul 2022 15:28:17 +0300 Subject: Impl changeworkspace(e+{n}) --- src/managers/input/InputManager.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/managers/input/InputManager.cpp') 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 } -- cgit v1.2.3