diff options
author | Isaac Freund <mail@isaacfreund.com> | 2024-01-11 12:38:20 -0600 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-17 11:00:52 +0300 |
commit | 7129eaa1f24a1287a5a071b6718a859b32000f85 (patch) | |
tree | 0fbd8cdf40421040d35c9622d20563b47db1fff8 | |
parent | ce89f49b7aab281198fad64e9a825a24dbf72e3d (diff) |
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.
-rw-r--r-- | include/wlr/types/wlr_keyboard.h | 2 | ||||
-rw-r--r-- | types/wlr_keyboard.c | 2 |
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 && |