layout: Do perform a view update transform when unmapped 76/27376/3
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 13 Apr 2022 14:27:43 +0000 (17:27 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 29 Apr 2022 10:51:34 +0000 (10:51 +0000)
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 <marius.vlad@collabora.com>
Change-Id: Ia8e8ed2c4cc165e7fd371a474d85b5fe38bd87fa

src/layout.c

index c98ae76..daffd5e 100644 (file)
@@ -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);