Always reset keyboard and pointer focus
authorDaniel Stone <daniel@fooishbar.org>
Wed, 30 May 2012 15:31:46 +0000 (16:31 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 31 May 2012 18:01:29 +0000 (14:01 -0400)
commitf7a39ff69b0b30c95330f6b6647d21707fe38dee
tree4a18887d6cd50d1d1b00c762f3e3488b86602a78
parent32add9c6e6af10114e583ddcd7b6cf36a39afbdc
Always reset keyboard and pointer focus

If wl_pointer_set_focus or wl_keyboard_set_focus have been called before
a listener has been established for that seat and client combination,
the focus window will be set but the focus resource will be NULL.  This
changes these functions to always attempt to search for the relevant
focus resource, allowing the resource to be set by calling
wl_keyboard_set_focus and wl_pointer_set_focus again when a listener has
been established.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/wayland-server.c