summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-07-21 19:38:19 +0300
committerMarius Vlad <marius.vlad@collabora.com>2023-07-24 15:33:30 +0300
commitf3ae1a25e249ea78ccb75c3125681cc453c92f7f (patch)
treedc3f3a87861d2606a4391d74d8f7bb1ad3bd4de9
parent26700fa20abefccb77bb586b49b1629bf102e131 (diff)
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 <marius.vlad@collabora.com> Change-Id: I84dc9b493648f4fe48b1c23c8ead0283505acce0
-rw-r--r--src/layout.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}