mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-04 22:42:39 +00:00
desktop-shell: Use consistent surface-has-content check for lock
Rather than checking if the surface has width 0, use our helper to see if the surface has an attached buffer. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
3e156720a9
commit
7205e88e60
|
@ -2977,7 +2977,7 @@ lock_surface_committed(struct weston_surface *surface,
|
||||||
|
|
||||||
view = container_of(surface->views.next, struct weston_view, surface_link);
|
view = container_of(surface->views.next, struct weston_view, surface_link);
|
||||||
|
|
||||||
if (surface->width == 0)
|
if (!weston_surface_has_content(surface))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (weston_surface_is_mapped(surface))
|
if (weston_surface_is_mapped(surface))
|
||||||
|
|
Loading…
Reference in a new issue