summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/client/client/tst_client.cpp1
-rw-r--r--tests/auto/client/shared/coreprotocol.cpp11
-rw-r--r--tests/auto/client/shared/coreprotocol.h3
-rw-r--r--tests/auto/client/xdgdecorationv1/tst_xdgdecorationv1.cpp2
4 files changed, 13 insertions, 4 deletions
diff --git a/tests/auto/client/client/tst_client.cpp b/tests/auto/client/client/tst_client.cpp
index 253a98b73..fa4a81e19 100644
--- a/tests/auto/client/client/tst_client.cpp
+++ b/tests/auto/client/client/tst_client.cpp
@@ -465,7 +465,6 @@ void tst_WaylandClient::mouseDrag()
void tst_WaylandClient::dontCrashOnMultipleCommits()
{
- QSKIP("This test is flaky. See QTBUG-68756.");
auto window = new TestWindow();
window->show();
diff --git a/tests/auto/client/shared/coreprotocol.cpp b/tests/auto/client/shared/coreprotocol.cpp
index 833ad4b09..5d9c4e9a3 100644
--- a/tests/auto/client/shared/coreprotocol.cpp
+++ b/tests/auto/client/shared/coreprotocol.cpp
@@ -77,8 +77,10 @@ void Surface::surface_attach(Resource *resource, wl_resource *buffer, int32_t x,
m_image = QImage();
} else {
QPoint offset(x, y);
+ if (resource->version() < 5)
+ m_pending.commitSpecific.attachOffset = offset;
+
m_pending.buffer = fromResource<Buffer>(buffer);
- m_pending.commitSpecific.attachOffset = offset;
m_pending.commitSpecific.attached = true;
emit attach(buffer, offset);
@@ -143,6 +145,13 @@ void Surface::surface_frame(Resource *resource, uint32_t callback)
}
}
+void Surface::surface_offset(Resource *resource, int32_t x, int32_t y)
+{
+ Q_UNUSED(resource);
+ QPoint offset(x, y);
+ m_pending.commitSpecific.attachOffset = offset;
+}
+
bool WlCompositor::isClean() {
for (auto *surface : std::as_const(m_surfaces)) {
if (!CursorRole::fromSurface(surface)) {
diff --git a/tests/auto/client/shared/coreprotocol.h b/tests/auto/client/shared/coreprotocol.h
index 0f59441a3..bea39dd13 100644
--- a/tests/auto/client/shared/coreprotocol.h
+++ b/tests/auto/client/shared/coreprotocol.h
@@ -124,6 +124,7 @@ protected:
void surface_set_buffer_scale(Resource *resource, int32_t scale) override;
void surface_commit(Resource *resource) override;
void surface_frame(Resource *resource, uint32_t callback) override;
+ void surface_offset(Resource *resource, int32_t x, int32_t y) override;
};
class Region : public QtWaylandServer::wl_region
@@ -145,7 +146,7 @@ class WlCompositor : public Global, public QtWaylandServer::wl_compositor
{
Q_OBJECT
public:
- explicit WlCompositor(CoreCompositor *compositor, int version = 4)
+ explicit WlCompositor(CoreCompositor *compositor, int version = 6)
: QtWaylandServer::wl_compositor(compositor->m_display, version)
, m_compositor(compositor)
{}
diff --git a/tests/auto/client/xdgdecorationv1/tst_xdgdecorationv1.cpp b/tests/auto/client/xdgdecorationv1/tst_xdgdecorationv1.cpp
index 54b15b3bf..5ee856944 100644
--- a/tests/auto/client/xdgdecorationv1/tst_xdgdecorationv1.cpp
+++ b/tests/auto/client/xdgdecorationv1/tst_xdgdecorationv1.cpp
@@ -111,7 +111,7 @@ public:
explicit XdgDecorationCompositor()
{
exec([this] {
- m_config.autoConfigure = true;
+ m_config.autoConfigure = false;
add<XdgDecorationManagerV1>(xdgDecorationVersion);
});
}