From fd4708c898aafc58d75e834b0a2845fd17103899 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Thu, 16 Dec 2021 14:41:08 +0200 Subject: layout: Remove explicit damage call As we will be marking all the views dirty, weston_output_repaint() should pick-up correctly any inflicted damage, and perform an implicit redraw without the need for an explict to call to weston_view_below_damage(). Note that we still need to schedule a repaint for that particular view. While at it, also remove an explicit call to weston_view_update_transform() which is going to be handled internally as well, when rebuilding the view list by libweston. Signed-off-by: Marius Vlad Change-Id: Ic701daebe69613b3dcc8eef96cac05c1b803327a --- src/layout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/layout.c b/src/layout.c index bcc8581..322fa80 100644 --- a/src/layout.c +++ b/src/layout.c @@ -215,10 +215,9 @@ ivi_layout_activate_complete(struct ivi_output *output, output->active = surf; weston_layer_entry_insert(&ivi->normal.view_list, &view->layer_link); - weston_view_update_transform(view); - weston_view_geometry_dirty(view); - weston_view_damage_below(view); + weston_view_geometry_dirty(view); + weston_view_schedule_repaint(view); /* * the 'remote' role now makes use of this part so make sure we don't -- cgit 1.2.3-korg