mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 15:59:31 +02:00
compositor: set data_device keyboard focus in seat_get_keyboard
Because seat_get_keyboard is called after initial weston_surface_activate, wl_data_device_set_keyboard_focus fails to send data offer for newly connected client due to wl_seat.focus_resource being NULL. This patch calls wl_data_device_set_keyboard_focus in seat_get_keyboard, so it can send data offer for newly created client (when wl_keyboard.resource_list and wl_seat.focus_resource are properly set up). https://bugs.freedesktop.org/show_bug.cgi?id=60617
This commit is contained in:
parent
230641a092
commit
1d298b2320
1 changed files with 1 additions and 0 deletions
|
|
@ -2145,6 +2145,7 @@ seat_get_keyboard(struct wl_client *client, struct wl_resource *resource,
|
|||
seat->seat.keyboard->focus->resource.client == client) {
|
||||
wl_keyboard_set_focus(seat->seat.keyboard,
|
||||
seat->seat.keyboard->focus);
|
||||
wl_data_device_set_keyboard_focus(&seat->seat);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue