mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-04 21:32:42 +00:00
desktop-shell: Use weston_view_move_to_layer() for minimised views
When we're moving a view to the minimised layer, use our new(ish) helper to move it. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
1e781d9f88
commit
8ed7f0f459
|
@ -1863,8 +1863,8 @@ set_minimized(struct weston_surface *surface)
|
|||
shsurf = get_shell_surface(surface);
|
||||
current_ws = get_current_workspace(shsurf->shell);
|
||||
|
||||
weston_layer_entry_remove(&view->layer_link);
|
||||
weston_layer_entry_insert(&shsurf->shell->minimized_layer.view_list, &view->layer_link);
|
||||
weston_view_move_to_layer(view,
|
||||
&shsurf->shell->minimized_layer.view_list);
|
||||
|
||||
drop_focus_state(shsurf->shell, current_ws, view->surface);
|
||||
surface_keyboard_focus_lost(surface);
|
||||
|
|
Loading…
Reference in a new issue