shell: Avoid advertising applications without app_id set 56/25356/3
authorWalter Lozano <walter.lozano@collabora.com>
Thu, 8 Oct 2020 17:07:55 +0000 (14:07 -0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 15 Oct 2020 09:33:47 +0000 (09:33 +0000)
commitabe3abc327b7d770b81f976d79f12112010e6a4e
treef64d174bfc661188ff12bd746e0ae700ab4b27ef
parent51a77a42b4003d25fbf8193ae6122fd95fd1489a
shell: Avoid advertising applications without app_id set

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 try to advertise an invalid app_id.

This patch avoids advertising an app which has no app_id set.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Change-Id: Iadcea106e6464b41171a2aa92aa0eed3a8e2ff2d
src/shell.c