keybinds: better follow xkb translation state

fixes #4908
This commit is contained in:
Vaxry
2024-03-02 01:46:16 +00:00
parent b2c3440477
commit 7ce781e87c
3 changed files with 70 additions and 3 deletions

View File

@@ -148,6 +148,8 @@ struct SKeyboard {
int numlockOn = -1;
bool resolveBindsBySym = false;
void updateXKBTranslationState(xkb_keymap* const keymap = nullptr);
// For the list lookup
bool operator==(const SKeyboard& rhs) const {
return keyboard == rhs.keyboard;