desktop-shell: Assume fullscreen views are mapped

If we're asked to set a view as fullscreen, assume we're not doing so
with the surface not being mapped.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-07-11 16:57:48 +01:00 committed by Marius Vlad
parent 4bbe4e6e98
commit 49a122bd30

View File

@ -1969,16 +1969,10 @@ shell_ensure_fullscreen_black_view(struct shell_surface *shsurf)
static void
shell_configure_fullscreen(struct shell_surface *shsurf)
{
struct weston_surface *surface =
weston_desktop_surface_get_surface(shsurf->desktop_surface);
weston_view_move_to_layer(shsurf->view,
&shsurf->shell->fullscreen_layer.view_list);
weston_shell_utils_center_on_output(shsurf->view, shsurf->fullscreen_output);
shell_ensure_fullscreen_black_view(shsurf);
if (weston_surface_has_content(surface))
weston_shell_utils_center_on_output(shsurf->view, shsurf->fullscreen_output);
}
static void