Skip to content

Commit

Permalink
keybinds: fixup misused kb state
Browse files Browse the repository at this point in the history
fixes #7369
  • Loading branch information
vaxerski committed Aug 30, 2024
1 parent 1c9d569 commit fd8d8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ bool CKeybindManager::onKeyEvent(std::any event, SP<IKeyboard> pKeyboard) {

const auto KEYCODE = e.keycode + 8; // Because to xkbcommon it's +8 from libinput

const xkb_keysym_t keysym = xkb_state_key_get_one_sym(pKeyboard->resolveBindsBySym ? pKeyboard->xkbStaticState : m_pXKBTranslationState, KEYCODE);
const xkb_keysym_t keysym = xkb_state_key_get_one_sym(pKeyboard->resolveBindsBySym ? pKeyboard->xkbState : m_pXKBTranslationState, KEYCODE);
const xkb_keysym_t internalKeysym = xkb_state_key_get_one_sym(pKeyboard->xkbState, KEYCODE);

if (handleInternalKeybinds(internalKeysym))
Expand Down

0 comments on commit fd8d8e1

Please sign in to comment.