summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2021-12-16 14:41:08 +0200
committerMarius Vlad <marius.vlad@collabora.com>2021-12-16 14:48:29 +0200
commitfd4708c898aafc58d75e834b0a2845fd17103899 (patch)
tree510201e4bf63678477e260772dedc2036de1a381
parentd456a0c59a316f8fd137c57d6d3bc164e5a50399 (diff)
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 <marius.vlad@collabora.com> Change-Id: Ic701daebe69613b3dcc8eef96cac05c1b803327a
-rw-r--r--src/layout.c5
1 files 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