ivi-shell: add surface_created listener after launchers
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>
Fri, 17 Jun 2016 13:50:16 +0000 (13:50 +0000)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 29 Jun 2016 08:31:51 +0000 (11:31 +0300)
commitd97f10081e5d34550276132128addf181a4de35b
tree7260259deb8f0c27e395efce9dc85de672a40c83
parent28d240f2819fdace6d70bff055ff75425a426783
ivi-shell: add surface_created listener after launchers

Add surface_created listener after the initialization of launchers.
Otherwise, surfaces of the launchers will be added to the application
layer too.

This does create a race where we might miss some surfaces that get
created before the UI client signals ready, but it was agreed the race
is not significant. You cannot use the launchers before the UI is ready,
and someone using systemd integration to launch clients in parallel to
Weston with ivi-shell and hmi-controller is unlikely. After all,
hmi-controller is just a demo.

Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
[Pekka: added extra commit message notes]
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
ivi-shell/hmi-controller.c