mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-09 04:15:47 +00:00
desktop-shell: Simplify confusing conditional
The only place we ever set shsurf->fullscreen.black_view is when we're going into fullscreen, and we destroy it when we're going out of fullscreen. Hence if we do ever have a fullscreen black view, we should move it out of the way. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
a019aa6b2a
commit
e32557131e
|
@ -3664,12 +3664,8 @@ lower_fullscreen_layer(struct desktop_shell *shell,
|
|||
if (lowering_output && (shsurf->fullscreen_output != lowering_output))
|
||||
continue;
|
||||
|
||||
/* We can have a non-fullscreen popup for a fullscreen surface
|
||||
* in the fullscreen layer. */
|
||||
if (weston_desktop_surface_get_fullscreen(shsurf->desktop_surface) &&
|
||||
shsurf->fullscreen.black_view) {
|
||||
if (shsurf->fullscreen.black_view)
|
||||
weston_view_move_to_layer(shsurf->fullscreen.black_view->view, NULL);
|
||||
}
|
||||
|
||||
/* Lower the view to the workspace layer */
|
||||
weston_view_move_to_layer(view, &ws->layer.view_list);
|
||||
|
|
Loading…
Reference in New Issue
Block a user