summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2021-03-10 20:03:07 +0200
committerMarius Vlad <marius.vlad@collabora.com>2021-03-11 01:00:10 +0200
commit46e2d5e441dfb9f58c377742529f2e106f31660c (patch)
tree0384eb5d8aed2e2e88733218a3d32a20fb3c22f6
parentd85915199c8a3213ad827ca2dfb3bbc34c5f3da3 (diff)
desktop: Send remove event only if output and app_id is set
This will guard against clients do not have an application id, or they weren't activated at all. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Iee58c0f54efdecce82ff07e0916ebef15f7f64d8
-rw-r--r--src/desktop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/desktop.c b/src/desktop.c
index f32097e..9a5ca54 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -243,8 +243,9 @@ skip_output_asignment:
weston_log("Removed surface %p, app_id %s, role %s\n", surface,
app_id, ivi_layout_get_surface_role_name(surface));
- shell_advertise_app_state(output->ivi, app_id,
- NULL, AGL_SHELL_DESKTOP_APP_STATE_DESTROYED);
+ if (app_id && output)
+ shell_advertise_app_state(output->ivi, app_id,
+ NULL, AGL_SHELL_DESKTOP_APP_STATE_DESTROYED);
wl_list_remove(&surface->link);