@ -2080,9 +2080,11 @@ update_modifier_state(struct weston_seat *seat, uint32_t serial, uint32_t key,
notify_modifiers ( seat , serial ) ;
}
static void
send_keymap ( struct wl_resource * resource , struct weston_xkb_info * xkb_info )
WL_EXPORT void
weston_keyboard_ send_keymap( struct weston_keyboard * kbd , struct wl_resource * resource )
{
struct weston_xkb_info * xkb_info = kbd - > xkb_info ;
wl_keyboard_send_keymap ( resource ,
WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1 ,
xkb_info - > keymap_fd ,
@ -2146,9 +2148,9 @@ update_keymap(struct weston_seat *seat)
keyboard - > xkb_state . state = state ;
wl_resource_for_each ( resource , & keyboard - > resource_list )
send_keymap ( resource , xkb_info ) ;
weston_keyboard_ send_keymap( keyboard , resource ) ;
wl_resource_for_each ( resource , & keyboard - > focus_resource_list )
send_keymap ( resource , xkb_info ) ;
weston_keyboard_ send_keymap( keyboard , resource ) ;
notify_modifiers ( seat , wl_display_next_serial ( seat - > compositor - > wl_display ) ) ;
@ -2890,9 +2892,7 @@ seat_get_keyboard(struct wl_client *client, struct wl_resource *resource,
seat - > compositor - > kb_repeat_delay ) ;
}
wl_keyboard_send_keymap ( cr , WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1 ,
keyboard - > xkb_info - > keymap_fd ,
keyboard - > xkb_info - > keymap_size ) ;
weston_keyboard_send_keymap ( keyboard , cr ) ;
if ( should_send_modifiers_to_client ( seat , client ) ) {
send_modifiers_to_resource ( keyboard ,