mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-01 15:20:14 +01:00
desktop-shell: Use weston_view_move_to_layer() for input panels
Use our helper instead of open-coding view manipulation. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
40fdffdced
commit
ecc0d40314
1 changed files with 3 additions and 7 deletions
|
|
@ -105,13 +105,9 @@ show_input_panel_surface(struct input_panel_surface *ipsurf)
|
|||
weston_view_set_position(ipsurf->view, pos);
|
||||
}
|
||||
|
||||
weston_layer_entry_insert(&shell->input_panel_layer.view_list,
|
||||
&ipsurf->view->layer_link);
|
||||
weston_view_geometry_dirty(ipsurf->view);
|
||||
weston_view_update_transform(ipsurf->view);
|
||||
ipsurf->view->is_mapped = true;
|
||||
weston_surface_map(ipsurf->surface);
|
||||
weston_surface_damage(ipsurf->surface);
|
||||
weston_view_move_to_layer(ipsurf->view,
|
||||
&shell->input_panel_layer.view_list);
|
||||
|
||||
if (ipsurf->anim)
|
||||
weston_view_animation_destroy(ipsurf->anim);
|
||||
|
|
@ -169,7 +165,7 @@ hide_input_panels(struct wl_listener *listener, void *data)
|
|||
wl_list_for_each_safe(view, next,
|
||||
&shell->input_panel_layer.view_list.link,
|
||||
layer_link.link)
|
||||
weston_view_unmap(view);
|
||||
weston_view_move_to_layer(view, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue