desktop: Delay surface creation until committed 86/25486/3
authorWalter Lozano <walter.lozano@collabora.com>
Mon, 26 Oct 2020 18:08:09 +0000 (18:08 +0000)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 17 Nov 2020 09:53:44 +0000 (09:53 +0000)
commit308078596396326017e18a8ae81cba89770c3f7a
tree0ed3e083e502253e166a373c8da8158e72cabf5f
parent681f5df234921e989606eefc6e293f37883bb22e
desktop: Delay surface creation until committed

Some frameworks like GTK-3 delay the set_app_id until title and
parent are set, which makes ivi_check_pending_desktop_surface
unable to set the proper role on surface_added. A consequence
of this behaviour is that is not possible to use set_app_property
to configure an application as popup.

Instead, delay the creation of the surface until committed to give
the chance to have a valid app_id configured.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Change-Id: I3f672fb365f48659711c866c45a21df6058a5a02
src/desktop.c
src/ivi-compositor.h
src/shell.c