summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Rosca <nowrep@gmail.com>2023-04-17 13:37:47 +0200
committerDavid Rosca <nowrep@gmail.com>2023-04-19 15:52:57 +0200
commitd06d66fad70d7c61559211b6f489b94d1c3a8a05 (patch)
treed89c0b06d0d08d94736493fa6831f35c7d0c45f7 /tests
parent45c422a4cba42c6ce8e228677e09ed8997bfc21e (diff)
downloadqtwayland-d06d66fad70d7c61559211b6f489b94d1c3a8a05.tar.gz
QWaylandWindow: Init parent wl_surface when creating subsurface
Fixes recreating subsurfaces after hiding and then again showing the window. Pick-to: 6.5 Change-Id: I2e3e7ceb42ec6b25cb64db260dfb74f6ebb10d27 Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/client/surface/tst_surface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/client/surface/tst_surface.cpp b/tests/auto/client/surface/tst_surface.cpp
index 083bc4fa..b583390f 100644
--- a/tests/auto/client/surface/tst_surface.cpp
+++ b/tests/auto/client/surface/tst_surface.cpp
@@ -199,6 +199,10 @@ void tst_surface::createSubsurfaceForHiddenParent()
// Make sure the client doesn't quit before it has a chance to crash
xdgPingAndWaitForPong();
+
+ // Make sure the subsurface was actually created
+ const Subsurface *subsurface = exec([=] {return subSurface(0);});
+ QVERIFY(subsurface);
}
QCOMPOSITOR_TEST_MAIN(tst_surface)