summaryrefslogtreecommitdiff
path: root/kiosk-shell
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2023-06-19 20:53:26 +0100
committerDaniel Stone <daniels@collabora.com>2023-06-26 15:49:50 +0000
commite743d56327bba0dd0819c29072023c03f277b845 (patch)
treed4fec09fdf04e39ca4fb6a04da33d53e20436168 /kiosk-shell
parenta822d20701ecc3595a8b2a96b3e56d8d9729b2a6 (diff)
kiosk-shell: Use weston_view_move_to_layer() for view activation
When a new view gets activated, use weston_view_move_to_layer() for our dance of moving views to the front. Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'kiosk-shell')
-rw-r--r--kiosk-shell/kiosk-shell.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/kiosk-shell/kiosk-shell.c b/kiosk-shell/kiosk-shell.c
index 4f9d0dad..33fbc1b1 100644
--- a/kiosk-shell/kiosk-shell.c
+++ b/kiosk-shell/kiosk-shell.c
@@ -1018,13 +1018,8 @@ kiosk_shell_activate_view(struct kiosk_shell *shell,
* We don't do this for the parent top-level, since that would
* obscure all children.
*/
- if (shsurf->parent) {
- weston_layer_entry_remove(&view->layer_link);
- weston_layer_entry_insert(&shell->normal_layer.view_list,
- &view->layer_link);
- weston_view_geometry_dirty(view);
- weston_surface_damage(view->surface);
- }
+ if (shsurf->parent)
+ weston_view_move_to_layer(view, &shell->normal_layer.view_list);
if (kiosk_seat)
kiosk_shell_surface_activate(shsurf, kiosk_seat, flags);