wayland-keyboard: Send keymap events also to focused resources
We move focused resources out of the global list when we focus a client's surface so we need to send events for those separately.
This commit is contained in:
parent
bf9fdf448d
commit
75cbf3d730
@ -123,6 +123,13 @@ inform_clients_of_new_keymap (MetaWaylandKeyboard *keyboard,
|
|||||||
wl_resource_get_client (keyboard_resource) == xclient)
|
wl_resource_get_client (keyboard_resource) == xclient)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
wl_keyboard_send_keymap (keyboard_resource,
|
||||||
|
WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
|
||||||
|
keyboard->xkb_info.keymap_fd,
|
||||||
|
keyboard->xkb_info.keymap_size);
|
||||||
|
}
|
||||||
|
wl_resource_for_each (keyboard_resource, &keyboard->focus_resource_list)
|
||||||
|
{
|
||||||
wl_keyboard_send_keymap (keyboard_resource,
|
wl_keyboard_send_keymap (keyboard_resource,
|
||||||
WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
|
WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
|
||||||
keyboard->xkb_info.keymap_fd,
|
keyboard->xkb_info.keymap_fd,
|
||||||
|
Loading…
Reference in New Issue
Block a user