[autotests/client] Set event queue on registry

Summary: Otherwise events are dispatched from the wrong thread.

Test Plan: Let's see if Jenkins to see if it hits that race condition again

Reviewers: #kwin

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D28263
This commit is contained in:
David Edmundson 2020-03-24 22:08:36 +00:00
parent dcf03ad241
commit 3c6e4ac0d1

View file

@ -510,6 +510,7 @@ void TestWaylandSurface::testMultipleSurfaces()
using namespace KWayland::Client;
using namespace KWayland::Server;
Registry registry;
registry.setEventQueue(m_queue);
QSignalSpy shmSpy(&registry, SIGNAL(shmAnnounced(quint32,quint32)));
registry.create(m_connection->display());
QVERIFY(registry.isValid());