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.
master
Isaac Freund 11 months ago committed by Kirill Primak
parent ce89f49b7a
commit 7129eaa1f2

@ -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 {

@ -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 &&

Loading…
Cancel
Save