compositor: set data_device keyboard focus in seat_get_keyboard
authorRafal Mielniczuk <rafal.mielniczuk2@gmail.com>
Sun, 17 Feb 2013 14:55:55 +0000 (15:55 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 18 Feb 2013 22:39:40 +0000 (17:39 -0500)
commit1d298b23201abca9519cb7d396bd4f34ed2a74e2
treef9bb08d03e41e436a49f8841b35832121f1a693c
parent230641a0920366159a676719fc7a2cb6afe59f4b
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
src/compositor.c