diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-11-18 15:54:39 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-11-19 12:28:35 +0000 |
commit | bdd8dd718496dc8e4330209c46c196442bcf7d3e (patch) | |
tree | 2a1a6a01201cf67802337b0a5540ea065b5a58e9 | |
parent | 54ab8a8cc447323d6a25ffdad5f1e98ac595bf26 (diff) |
layout: Do not attempt to activate surfaces that doesn't have a valid app_idkoi_10.91.0koi/10.91.010.91.0
Observed when trying to activate (a previous one, as a result
of deactivation) a surface that didn't had an application id set.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I3c39ae7dfb237e53f4b2bad64e7bc5ef91a76f0c
-rw-r--r-- | src/layout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/layout.c b/src/layout.c index 0345807..0363af7 100644 --- a/src/layout.c +++ b/src/layout.c @@ -745,6 +745,9 @@ ivi_layout_activate(struct ivi_output *output, const char *app_id) struct ivi_surface *surf; struct ivi_compositor *ivi = output->ivi; + if (!app_id) + return; + surf = ivi_find_app(ivi, app_id); if (!surf) return; @@ -798,6 +801,9 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id) struct ivi_output *ivi_output; struct ivi_policy *policy = ivi->policy; + if (!app_id) + return; + surf = ivi_find_app(ivi, app_id); if (!surf) return; |