desktop: Fix destruction of applications that fallback to the desktop role 03/24903/2
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 26 Jun 2020 13:04:38 +0000 (16:04 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Jul 2020 10:56:10 +0000 (13:56 +0300)
commit39ea644837dd29cd47a579a9703b43458187f82b
tree352c1311f32fe6005f983922a9e6255f73c91a9e
parentfaea097edab0971709e847193e1bf1837ab8030c
desktop: Fix destruction of applications that fallback to the desktop role

With commit 9827cfd25578, application not having a valid app_id will
fallback to being assigned the desktop role. In this case, destroying
those kind of surfaces will not have an output assigned, so add a
code path for those as well. Found while testing cluster-receiver with
waylandsink and sub-surfaces.

Bug-AGL: SPEC-3382

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: If20bdcf02810c16167fdbfbf30f3fd367c43069b
src/desktop.c