layout: Give ini config precedence over agl_shell 12/29012/1
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 13 Jun 2023 11:04:40 +0000 (14:04 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 13 Jun 2023 11:09:05 +0000 (14:09 +0300)
The activation area can set-up with agl_shell as well, so give
the ini configuration file precedence over the one set-up by
agl_shell.

Bug-AGL: SPEC-4829
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ifae82b8c29575e7a9a06422588ad6a8cce80946e

src/layout.c

index 8c8b4be..082c36e 100644 (file)
@@ -170,6 +170,12 @@ ivi_layout_init(struct ivi_compositor *ivi, struct ivi_output *output)
                        if (parse_activation_area(t, output) < 0)
                                weston_log("Invalid activation-area \"%s\" for output %s\n",
                                           t, output->name);
+               } else {
+                       weston_log("WARNING: activation-area detected in ini file, "
+                                       "but agl_shell override detected!\n");
+                       if (parse_activation_area(t, output) < 0)
+                               weston_log("Invalid activation-area \"%s\" for output %s\n",
+                                          t, output->name);
                }
        }
        free(t);