mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
input: get_current_modifiers(): use xkb_state_key_get_consumed_mods2()
Explicitly request consumed modifiers using the `XKB` mode.
This commit is contained in:
parent
8f38cd486f
commit
913dd8b4a6
1 changed files with 4 additions and 2 deletions
6
input.c
6
input.c
|
|
@ -993,8 +993,10 @@ get_current_modifiers(const struct seat *seat,
|
|||
seat->kbd.xkb_state, XKB_STATE_MODS_EFFECTIVE);
|
||||
}
|
||||
|
||||
if (consumed != NULL)
|
||||
*consumed = xkb_state_key_get_consumed_mods(seat->kbd.xkb_state, key);
|
||||
if (consumed != NULL) {
|
||||
*consumed = xkb_state_key_get_consumed_mods2(
|
||||
seat->kbd.xkb_state, key, XKB_CONSUMED_MODE_XKB);
|
||||
}
|
||||
}
|
||||
|
||||
struct kbd_ctx {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue