layout: Do perform a view update transform when unmapped 36/27536/2
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 13 Apr 2022 14:27:43 +0000 (17:27 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 10 Jun 2022 21:22:30 +0000 (21:22 +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
(cherry picked from commit 2cd345013ccaaccd74e61e6a14546bc861f8b5b1)

src/layout.c

index 6c1df79..829e1d5 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);