keyboard: fix type of wlr_keyboard_modifiers.group

This isn't a breaking change since both of these typedefs are uint32_t
but this should make things a bit less confusing for readers.
This commit is contained in:
Isaac Freund 2024-01-11 12:38:20 -06:00 committed by Kirill Primak
parent ce89f49b7a
commit 7129eaa1f2
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ struct wlr_keyboard_modifiers {
xkb_mod_mask_t depressed;
xkb_mod_mask_t latched;
xkb_mod_mask_t locked;
xkb_mod_mask_t group;
xkb_layout_index_t group;
};
struct wlr_keyboard {

View File

@ -48,7 +48,7 @@ bool keyboard_modifier_update(struct wlr_keyboard *keyboard) {
XKB_STATE_MODS_LATCHED);
xkb_mod_mask_t locked = xkb_state_serialize_mods(keyboard->xkb_state,
XKB_STATE_MODS_LOCKED);
xkb_mod_mask_t group = xkb_state_serialize_layout(keyboard->xkb_state,
xkb_layout_index_t group = xkb_state_serialize_layout(keyboard->xkb_state,
XKB_STATE_LAYOUT_EFFECTIVE);
if (depressed == keyboard->modifiers.depressed &&
latched == keyboard->modifiers.latched &&