desktop-shell: Use weston_surface_has_content()

Now we've got a wrapper which can tell us whether or not a surface has
content, use it.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 2 years ago committed by Marius Vlad
parent d211e3173c
commit 888d08d8a5
  1. 2
      desktop-shell/shell.c

@ -2124,7 +2124,7 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
surface_subsurfaces_boundingbox(surface, &surf_x, &surf_y,
&surf_width, &surf_height);
if (surface->buffer_ref.buffer)
if (weston_surface_has_content(surface))
center_on_output(shsurf->view, shsurf->fullscreen_output);
}

Loading…
Cancel
Save