layout: Inflict surface damage 12/27212/2
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 18 Feb 2022 11:48:59 +0000 (13:48 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 2 Mar 2022 14:54:26 +0000 (14:54 +0000)
Commit 'layout: Remove explicit damage call' re-done the way we've
handled additions to the layer, removing any damage infliction to either
the plane where to view is visible. While marking the view as dirty (and
with it any other children to the that view), we still
to tell the compositor that the view being added, has suffered changes.

Bug-AGL: SPEC-4262

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: If3033df36943fb466302e7907bd38f9a0703d49b

src/layout.c

index 8bbaf57..aa32415 100644 (file)
@@ -215,9 +215,8 @@ ivi_layout_activate_complete(struct ivi_output *output,
        output->active = surf;
 
        weston_layer_entry_insert(&ivi->normal.view_list, &view->layer_link);
-
        weston_view_geometry_dirty(view);
-       weston_view_schedule_repaint(view);
+       weston_surface_damage(view->surface);
 
        /*
         * the 'remote' role now makes use of this part so make sure we don't