aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormay <[email protected]>2024-11-22 03:31:42 +0100
committerGitHub <[email protected]>2024-11-22 02:31:42 +0000
commitb1003445953474b967464d4d0878955d37498647 (patch)
tree0788bc65b26f1b166495721b4f5e7998c2556b44
parent943b3d467b0a77a6b67df01e78f5e4977486824f (diff)
downloadHyprland-b1003445953474b967464d4d0878955d37498647.tar.gz
Hyprland-b1003445953474b967464d4d0878955d37498647.zip
keybinds: actually suppress internal keybinds instead of passing them along (#8538)
-rw-r--r--src/managers/KeybindManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index be1e9534..8cf39c1b 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -423,8 +423,10 @@ bool CKeybindManager::onKeyEvent(std::any event, SP<IKeyboard> pKeyboard) {
const xkb_keysym_t keysym = xkb_state_key_get_one_sym(pKeyboard->resolveBindsBySym ? pKeyboard->xkbSymState : m_pXKBTranslationState, KEYCODE);
const xkb_keysym_t internalKeysym = xkb_state_key_get_one_sym(pKeyboard->xkbState, KEYCODE);
+ // handleInternalKeybinds returns true when the key should be suppressed,
+ // while this function returns true when the key event should be sent
if (handleInternalKeybinds(internalKeysym))
- return true;
+ return false;
const auto MODS = g_pInputManager->accumulateModsFromAllKBs();