summaryrefslogtreecommitdiff
path: root/ivi-shell
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2016-06-29 19:04:06 -0700
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-06-30 13:15:33 +0300
commit260c2ffd97f2862b7b8de16bc61abcc49d9a1c35 (patch)
treea6c87e609f3af8eb0bd66c5ea62c5ef4fa0b4684 /ivi-shell
parenta5bb91dcdc2b291a55f57182d6e20bdef9c338a2 (diff)
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>
Diffstat (limited to 'ivi-shell')
-rw-r--r--ivi-shell/ivi-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c
index 8bf3e80a..090ee4d1 100644
--- a/ivi-shell/ivi-shell.c
+++ b/ivi-shell/ivi-shell.c
@@ -445,7 +445,7 @@ activate_binding(struct weston_seat *seat,
if (get_ivi_shell_surface(main_surface) == NULL)
return;
- weston_surface_activate(focus, seat);
+ weston_seat_set_keyboard_focus(seat, focus);
}
static void