summaryrefslogtreecommitdiffstats
path: root/src/layout.c
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-06-05 17:16:30 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-06-15 14:48:38 +0300
commit168261297ce8d6e17ca69eb1de4d0e98de52eedc (patch)
treeca61305f9d242241da8da4b3b6ad0fee0b9db88b /src/layout.c
parent81be1de53fd49b7a31e5fea217e88c038e22c3f9 (diff)
src: Mark surfaces with the 'remote' role if configuration file says so
As we don't have an explicit way to do it, like we have with the protocol, we try to determine if the surface was being assigned a remote output and use that, when the surface is created. Bug-AGL: SPEC-3280 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Idd95acd9ae69c5ac37b50d447956b0ee46a94677
Diffstat (limited to 'src/layout.c')
-rw-r--r--src/layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout.c b/src/layout.c
index 0b8858d..325f712 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -236,8 +236,8 @@ ivi_layout_activate_complete(struct ivi_output *output,
ivi_layout_get_surface_role_name(surf), output->name);
}
-static struct ivi_output *
-ivi_layout_find_app_id(const char *app_id, struct ivi_compositor *ivi)
+struct ivi_output *
+ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi)
{
struct ivi_output *out;
@@ -303,7 +303,7 @@ ivi_layout_desktop_committed(struct ivi_surface *surf)
return;
/* check first if there aren't any outputs being set */
- r_output = ivi_layout_find_app_id(app_id, surf->ivi);
+ r_output = ivi_layout_find_with_app_id(app_id, surf->ivi);
if (r_output) {
struct weston_view *view = r_output->fullscreen_view.fs->view;