Changeset View
Changeset View
Standalone View
Standalone View
autotests/client/test_wayland_seat.cpp
Show First 20 Lines • Show All 1674 Lines • ▼ Show 20 Line(s) | 1603 | { | |||
---|---|---|---|---|---|
1675 | QScopedPointer<DataDeviceManager> ddm(registry2.createDataDeviceManager(dataDeviceManagerSpy.first().first().value<quint32>(), | 1675 | QScopedPointer<DataDeviceManager> ddm(registry2.createDataDeviceManager(dataDeviceManagerSpy.first().first().value<quint32>(), | ||
1676 | dataDeviceManagerSpy.first().last().value<quint32>())); | 1676 | dataDeviceManagerSpy.first().last().value<quint32>())); | ||
1677 | QVERIFY(ddm->isValid()); | 1677 | QVERIFY(ddm->isValid()); | ||
1678 | 1678 | | |||
1679 | QScopedPointer<DataDevice> dd(ddm->getDataDevice(m_seat)); | 1679 | QScopedPointer<DataDevice> dd(ddm->getDataDevice(m_seat)); | ||
1680 | QVERIFY(dd->isValid()); | 1680 | QVERIFY(dd->isValid()); | ||
1681 | QVERIFY(ddiCreatedSpy.wait()); | 1681 | QVERIFY(ddiCreatedSpy.wait()); | ||
1682 | 1682 | | |||
1683 | // unset surface and set again | ||||
1684 | m_seatInterface->setFocusedKeyboardSurface(nullptr); | ||||
1685 | m_seatInterface->setFocusedKeyboardSurface(serverSurface); | ||||
1686 | | ||||
1683 | // and delete the connection thread again | 1687 | // and delete the connection thread again | ||
1684 | dd1.reset(); | 1688 | dd1.reset(); | ||
1685 | ddm1.reset(); | 1689 | ddm1.reset(); | ||
1686 | seat.reset(); | 1690 | seat.reset(); | ||
1687 | registry.reset(); | 1691 | registry.reset(); | ||
1688 | queue.reset(); | 1692 | queue.reset(); | ||
1689 | c->deleteLater(); | 1693 | c->deleteLater(); | ||
1690 | thread->quit(); | 1694 | thread->quit(); | ||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |