[PATCH weston 0/2] add test for sub-surface with unmapped parent

Emilio Pozuelo Monfort pochu27 at gmail.com
Fri Jul 6 15:31:13 UTC 2018


Nothing to fix in weston itself, a similar test works fine with the
desktop shell. However the test doesn't work in the test shell, so fix it
there.

Pekka, I see what you meant when you said that we needed to call committed()
and that my previous fix was wrong. This may need some improvements to
surface_has_content() to check other variables in addition or instead of
width and height, but hopefully the approach is better this time.

Emilio Pozuelo Monfort (2):
  shot: add test for sub-surface with unmapped parent
  weston-test: don't map surfaces that have no content

 tests/reference/subsurface_mapped-00.png | Bin 0 -> 5294 bytes
 tests/reference/subsurface_mapped-01.png | Bin 0 -> 5612 bytes
 tests/subsurface-shot-test.c             |  76 +++++++++++++++++++++++
 tests/weston-test.c                      |   9 +++
 4 files changed, 85 insertions(+)
 create mode 100644 tests/reference/subsurface_mapped-00.png
 create mode 100644 tests/reference/subsurface_mapped-01.png

-- 
2.18.0



More information about the wayland-devel mailing list