diff options
author | 2024-11-12 16:36:50 +0200 | |
---|---|---|
committer | 2024-11-25 21:09:10 +0200 | |
commit | bb22f7830a2df3ced3f37c6b6150bda8fe83e79b (patch) | |
tree | 238fbd5861e6e845681c7de3b615e7223c1602ef | |
parent | 6d8895204bb67290027eb0c82250bd13a5655c84 (diff) |
layout: Use weston_view_move_to_layer helper for de-activating views
Finally, adjust the de-activating views.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I64e0c548c676ad9852bc5fe293eb76635e370c21
-rw-r--r-- | src/layout.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/layout.c b/src/layout.c index fc96943..9d13e30 100644 --- a/src/layout.c +++ b/src/layout.c @@ -1325,12 +1325,8 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id) struct weston_view *view; view = ivi_output->active->view; - view->is_mapped = false; - view->surface->is_mapped = false; - - weston_layer_entry_remove(&view->layer_link); - weston_view_geometry_dirty(view); - weston_surface_damage(view->surface); + weston_view_unmap(view); + weston_view_move_to_layer(view, NULL); ivi_output->active = NULL; } } else { @@ -1346,12 +1342,9 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id) surf->role == IVI_SURFACE_ROLE_FULLSCREEN) { struct weston_view *view = surf->view; - weston_view_unmap(view); surf->state = HIDDEN; - - weston_layer_entry_remove(&view->layer_link); - weston_view_geometry_dirty(view); - weston_surface_damage(view->surface); + weston_view_unmap(view); + weston_view_move_to_layer(view, NULL); } shell_send_app_state(ivi, app_id, AGL_SHELL_APP_STATE_DEACTIVATED); |