summaryrefslogtreecommitdiff
path: root/desktop-shell
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2022-06-15 15:56:24 +0100
committerMarius Vlad <marius.vlad@collabora.com>2022-06-16 12:17:15 +0300
commit888d08d8a533a0c8791b82d79e7f13819f66d3ba (patch)
treec90c08854bf1fb45891ff9ed91aedcba6371d04d /desktop-shell
parentd211e3173cf1d1ac920a39f8a66638b74272a372 (diff)
downloadweston-888d08d8a533a0c8791b82d79e7f13819f66d3ba.tar.gz
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>
Diffstat (limited to 'desktop-shell')
-rw-r--r--desktop-shell/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 8e3ec134..87bcae3d 100644
--- a/desktop-shell/shell.c
+++ b/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);
}