shell: Advertise app when app_id is available 08/25408/3
authorWalter Lozano <walter.lozano@collabora.com>
Wed, 23 Sep 2020 13:31:23 +0000 (13:31 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 15 Oct 2020 09:33:47 +0000 (09:33 +0000)
commitfe771c084c2f0192ca08dd3b7f85088960703e36
treead8cb121acf994dc9bc8f61281a393641f8366ae
parentabe3abc327b7d770b81f976d79f12112010e6a4e
shell: Advertise app when app_id is available

When using GTK-3 to create apps, the framework issues set_parent_id
which forces a surface to be added even before the app_id is set.
This causes the compositor to fail to advertise the app.

This patch tries to overcome this issue by checking on surface commit
if the surface was previously advertised, and do it if it was not.

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