tests: Don't remap surfaces with NULL buffer
On attaching a NULL wl_buffer, weston_surface_attach() will unmap the surface. Don't immediately remap it within committed() if we don't have a buffer. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
5b14a094e7
commit
caac97be6a
@ -259,6 +259,9 @@ test_surface_committed(struct weston_surface *surface,
|
||||
struct weston_test *test = test_surface->test;
|
||||
struct weston_coord_global pos;
|
||||
|
||||
if (!weston_surface_has_content(surface))
|
||||
return;
|
||||
|
||||
weston_surface_map(test_surface->surface);
|
||||
|
||||
pos.c = weston_coord(test_surface->x, test_surface->y);
|
||||
|
Loading…
Reference in New Issue
Block a user