From 2cd345013ccaaccd74e61e6a14546bc861f8b5b1 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 13 Apr 2022 17:27:43 +0300 Subject: layout: Do perform a view update transform when unmapped We should always perform a view update transformed when the view is not mapped -- or better said when mapping the view. Found while investigating some certain bevahiours related to surfaces not being activated by default. While a dirty+surface damage is sufficient when adding views to layers, on mapping we should also perform an transform update of the view. Bug-AGL: SPEC-4302 Signed-off-by: Marius Vlad Change-Id: Ia8e8ed2c4cc165e7fd371a474d85b5fe38bd87fa --- src/layout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layout.c b/src/layout.c index c98ae76..daffd5e 100644 --- a/src/layout.c +++ b/src/layout.c @@ -195,6 +195,8 @@ ivi_layout_activate_complete(struct ivi_output *output, if (weston_view_is_mapped(view)) { weston_layer_entry_remove(&view->layer_link); + } else { + weston_view_update_transform(view); } weston_view_set_output(view, woutput); -- cgit 1.2.3-korg