input: Rename weston_surface_activate to weston_seat_set_keyboard_focus
authorBryce Harrington <bryce@osg.samsung.com>
Thu, 30 Jun 2016 02:04:06 +0000 (19:04 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 30 Jun 2016 10:15:33 +0000 (13:15 +0300)
commit260c2ffd97f2862b7b8de16bc61abcc49d9a1c35
treea6c87e609f3af8eb0bd66c5ea62c5ef4fa0b4684
parenta5bb91dcdc2b291a55f57182d6e20bdef9c338a2
input: Rename weston_surface_activate to weston_seat_set_keyboard_focus

The name suggests that it activates surfaces, but the code says it
rather just assigns keyboard focus.  Rename it for clarity, and so the
original function name could be used for something more appropriate
later.  Switch order of parameters since keyboard focus is a property of
the seat.  Update all callers as appropriate.

Change was asked for by pq, May 26, 2016:

 "This should be called weston_seat_set_keyboard_focus(seat, surface).
 Keyboard focus is a property of the seat."

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
desktop-shell/shell.c
fullscreen-shell/fullscreen-shell.c
ivi-shell/ivi-shell.c
libweston/compositor.h
libweston/input.c
tests/weston-test.c