aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wlr/types/wlr_keyboard.h2
-rw-r--r--types/wlr_keyboard.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h
index abc4edf6..90464936 100644
--- a/include/wlr/types/wlr_keyboard.h
+++ b/include/wlr/types/wlr_keyboard.h
@@ -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 {
diff --git a/types/wlr_keyboard.c b/types/wlr_keyboard.c
index 6aea09db..98978ee1 100644
--- a/types/wlr_keyboard.c
+++ b/types/wlr_keyboard.c
@@ -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 &&