diff options
| author | Abdelhakim Qbaich <abdelhakim@qbaich.com> | 2019-06-22 15:33:02 -0400 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2019-06-22 22:36:53 +0300 |
| commit | 11560381bf54d228aa09aa61bd31135ae0ea9662 (patch) | |
| tree | 71fd81a5c6d51fcdbe0aa984fe980be6409502f1 | |
| parent | 89b214612c3a521d6aa6a2c68f61575e38b7408d (diff) | |
Damage state when the keyboard layout changes
| -rw-r--r-- | seat.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -62,6 +62,11 @@ static void keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group) { struct swaylock_state *state = data; + int layout_same = xkb_state_layout_index_is_active(state->xkb.state, + group, XKB_STATE_LAYOUT_EFFECTIVE); + if (!layout_same) { + damage_state(state); + } xkb_state_update_mask(state->xkb.state, mods_depressed, mods_latched, mods_locked, 0, 0, group); int caps_lock = xkb_state_mod_name_is_active(state->xkb.state, |
