Pass parent to Client::Keyboard in TestWaylandSeat

This ensures that the Keyboard doesn't leak in the test.
This commit is contained in:
Martin Gräßlin 2014-09-22 11:00:02 +02:00
parent acb08e276d
commit ba9270a887

View file

@ -408,7 +408,7 @@ void TestWaylandSeat::testKeyboard()
// no pointer yet - won't be set
QVERIFY(!serverKeyboard->focusedSurface());
Keyboard *keyboard = m_seat->createKeyboard();
Keyboard *keyboard = m_seat->createKeyboard(m_seat);
QVERIFY(keyboard->isValid());
wl_display_flush(m_connection->display());
QTest::qWait(100);