summaryrefslogtreecommitdiffstats
path: root/src/layout.c
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-02-21 14:27:28 +0200
committerMarius Vlad <marius.vlad@collabora.com>2022-05-26 13:54:46 +0300
commitda54cfd31dd63e7d51afe459208ff17b283d95b9 (patch)
tree63ac43ca2634b5412fa58ae72a25a4587302cf9c /src/layout.c
parentb7567f17683b60cd5b8c48d0756b261737193a3d (diff)
This is just a missing left-over 'layout: Inflict damage on all subsurfaces'. As we have different paths for other types of surface roles, address them as well. Bug-AGL: SPEC-4262 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I2b68bf986ad694b0e31396edc24c54cf1dc4d834 (cherry picked from commit cec4cf8fe409cae5618e81e4a3b6dd11cc8b2aa9)
Diffstat (limited to 'src/layout.c')
-rw-r--r--src/layout.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/layout.c b/src/layout.c
index aa32415..0356d01 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -427,8 +427,8 @@ ivi_layout_fullscreen_committed(struct ivi_surface *surface)
weston_view_set_position(view, woutput->x, woutput->y);
weston_layer_entry_insert(&ivi->fullscreen.view_list, &view->layer_link);
- weston_view_update_transform(view);
- weston_view_damage_below(view);
+ weston_view_geometry_dirty(view);
+ weston_surface_damage(view->surface);
wsurface->is_mapped = true;
surface->view->is_mapped = true;
@@ -456,8 +456,9 @@ ivi_layout_desktop_resize(struct ivi_surface *surface,
width, height);
weston_view_set_position(view, x, y);
- weston_view_update_transform(view);
- weston_view_damage_below(view);
+
+ weston_view_geometry_dirty(view);
+ weston_surface_damage(view->surface);
}
void
@@ -541,8 +542,8 @@ ivi_layout_split_committed(struct ivi_surface *surface)
weston_view_set_position(view, x, y);
weston_layer_entry_insert(&ivi->normal.view_list, &view->layer_link);
- weston_view_update_transform(view);
- weston_view_damage_below(view);
+ weston_view_geometry_dirty(view);
+ weston_surface_damage(view->surface);
wsurface->is_mapped = true;
surface->view->is_mapped = true;
@@ -606,8 +607,8 @@ ivi_layout_popup_committed(struct ivi_surface *surface)
weston_layer_entry_insert(&ivi->popup.view_list, &view->layer_link);
- weston_view_update_transform(view);
- weston_view_damage_below(view);
+ weston_view_geometry_dirty(view);
+ weston_surface_damage(view->surface);
wsurface->is_mapped = true;
surface->view->is_mapped = true;
@@ -843,7 +844,8 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id)
view->surface->is_mapped = false;
weston_layer_entry_remove(&view->layer_link);
- weston_view_damage_below(view);
+ weston_view_geometry_dirty(view);
+ weston_surface_damage(view->surface);
ivi_output->active = NULL;
}
} else {
@@ -859,6 +861,7 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id)
struct weston_view *view = surf->view;
weston_layer_entry_remove(&view->layer_link);
- weston_view_damage_below(view);
+ weston_view_geometry_dirty(view);
+ weston_surface_damage(view->surface);
}
}