From: Rafal Mielniczuk Date: Sun, 17 Feb 2013 14:55:55 +0000 (+0100) Subject: compositor: set data_device keyboard focus in seat_get_keyboard X-Git-Tag: accepted/2.0alpha-wayland/20130424.214608~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d298b23201abca9519cb7d396bd4f34ed2a74e2;p=profile%2Fivi%2Fweston.git 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 --- diff --git a/src/compositor.c b/src/compositor.c index 26fd41a..27e1868 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -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); } }