From: Marius Vlad Date: Fri, 21 Jul 2023 16:38:19 +0000 (+0300) Subject: layout: Check against app_id being valid X-Git-Tag: 17.90.0~17 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=f3ae1a25e249ea78ccb75c3125681cc453c92f7f;p=src%2Fagl-compositor.git layout: Check against app_id being valid All app_ids are not valid for xwayland type of surfaces to need to check against it. Bug-AGL: SPEC-4847 Signed-off-by: Marius Vlad Change-Id: I84dc9b493648f4fe48b1c23c8ead0283505acce0 --- diff --git a/src/layout.c b/src/layout.c index 5576094..c11dacb 100644 --- a/src/layout.c +++ b/src/layout.c @@ -325,7 +325,7 @@ ivi_layout_activate_complete(struct ivi_output *output, * we're trying to complete activation with means we're * operating on the same app_id so do update previous_active as * it will overwrite it with the same value */ - if (!strcmp(c_app_id, app_id)) { + if (app_id && !strcmp(c_app_id, app_id)) { update_previous = false; } }