Add a Registry::create overload taking the ConnectionThread object

This means we don't need to pass the wl_display* around.
This commit is contained in:
Martin Gräßlin 2014-09-19 09:52:50 +02:00
parent cdd2ab9b78
commit 4d70ace4df

View file

@ -117,7 +117,7 @@ void TestWaylandRegistry::testCreate()
QVERIFY(!registry.bindMethod(0, 0)); \
\
QVERIFY(!registry.isValid()); \
registry.create(connection.display()); \
registry.create(&connection); \
QVERIFY(registry.isValid()); \
/* created but not yet connected still results in no bind */ \
QVERIFY(!registry.bindMethod(0, 0)); \