wayland: Emit GdkKeymap::state-changed when appropriate

This makes the caps lock warning in password entries work.
This commit is contained in:
Matthias Clasen 2013-03-22 18:34:44 -04:00
parent 1ea760fbc9
commit cc70ac104d

View File

@ -1075,6 +1075,8 @@ keyboard_handle_modifiers (void *data,
device->modifiers = mods_depressed | mods_latched | mods_locked; device->modifiers = mods_depressed | mods_latched | mods_locked;
xkb_state_update_mask (xkb_state, mods_depressed, mods_latched, mods_locked, group, 0, 0); xkb_state_update_mask (xkb_state, mods_depressed, mods_latched, mods_locked, group, 0, 0);
g_signal_emit_by_name (keymap, "state-changed");
} }
static const struct wl_pointer_listener pointer_listener = { static const struct wl_pointer_listener pointer_listener = {