mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-27 10:29:48 +01:00
keyboard: update group state on change for the sym resolve state
fixes #8038
This commit is contained in:
parent
7d0944acdf
commit
0cfbe618b5
1 changed files with 3 additions and 0 deletions
|
@ -392,6 +392,9 @@ void IKeyboard::updateXkbStateWithKey(uint32_t xkbKey, bool pressed) {
|
||||||
xkb_state_update_key(xkbState, xkbKey, pressed ? XKB_KEY_DOWN : XKB_KEY_UP);
|
xkb_state_update_key(xkbState, xkbKey, pressed ? XKB_KEY_DOWN : XKB_KEY_UP);
|
||||||
|
|
||||||
if (updateModifiersState()) {
|
if (updateModifiersState()) {
|
||||||
|
if (xkbSymState)
|
||||||
|
xkb_state_update_mask(xkbSymState, 0, 0, 0, 0, 0, modifiersState.group);
|
||||||
|
|
||||||
keyboardEvents.modifiers.emit(SModifiersEvent{
|
keyboardEvents.modifiers.emit(SModifiersEvent{
|
||||||
.depressed = modifiersState.depressed,
|
.depressed = modifiersState.depressed,
|
||||||
.latched = modifiersState.latched,
|
.latched = modifiersState.latched,
|
||||||
|
|
Loading…
Reference in a new issue