diff options
author | 2024-12-12 15:22:39 +0200 | |
---|---|---|
committer | 2025-01-10 11:04:09 +0000 | |
commit | bddc72686d3b5398962ae0131a86aef6b3132bda (patch) | |
tree | 2bf9a25af2aa39dc2efb66db130549f0c37baca8 | |
parent | 2218de5d4581843f229f2327900d9e11ff65c738 (diff) |
layout: Add missing mappedness checks
Required for remote output.
Bug-AGL: SPEC-5324
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I7c417225ff30f54d1046ff362249931ac3b45c46
-rw-r--r-- | src/layout.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/layout.c b/src/layout.c index 12c3524..d101014 100644 --- a/src/layout.c +++ b/src/layout.c @@ -500,10 +500,7 @@ ivi_layout_add_to_hidden_layer(struct ivi_surface *surf, * start receiving frame events, and will be able to act on our * configure event. */ - if (!weston_view_is_mapped(ev)) { - ev->is_mapped = true; - ev->surface->is_mapped = true; - + if (!weston_surface_is_mapped(ev->surface)) { weston_desktop_surface_set_maximized(dsurf, true); weston_desktop_surface_set_size(dsurf, ivi_output->area.width, @@ -574,7 +571,7 @@ ivi_layout_remote_committed(struct ivi_surface *surf) * ivi_layout_activate_complete() terminates so we use the * current active surface to avoid hitting this again and again * */ - if (surf->mapped && output->active == surf) + if (weston_surface_is_mapped(surf->view->surface) && output->active == surf) return; if (!surf->ivi->activate_by_default && @@ -847,7 +844,7 @@ ivi_layout_split_committed(struct ivi_surface *surface) !surface->mapped) return; - if (surface->view->is_mapped) + if (weston_view_is_mapped(surface->view)) return; geom = weston_desktop_surface_get_geometry(dsurface); |