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 _______________________________________________ wayland-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/wayland-devel
