forked from AuroraMiddleware/gtk
wayland: Emit GdkKeymap::state-changed when appropriate
This makes the caps lock warning in password entries work.
This commit is contained in:
parent
1ea760fbc9
commit
cc70ac104d
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user