Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/transient_no_input_test.cpp
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 70 | { | |||
---|---|---|---|---|---|
98 | Test::render(transientSurface.data(), QSize(200, 20), Qt::red); | 98 | Test::render(transientSurface.data(), QSize(200, 20), Qt::red); | ||
99 | Test::flushWaylandConnection(); | 99 | Test::flushWaylandConnection(); | ||
100 | QVERIFY(clientAddedSpy.wait()); | 100 | QVERIFY(clientAddedSpy.wait()); | ||
101 | // get the latest ShellClient | 101 | // get the latest ShellClient | ||
102 | auto transientClient = clientAddedSpy.last().first().value<ShellClient*>(); | 102 | auto transientClient = clientAddedSpy.last().first().value<ShellClient*>(); | ||
103 | QVERIFY(transientClient != c); | 103 | QVERIFY(transientClient != c); | ||
104 | QCOMPARE(transientClient->geometry(), QRect(c->x() + 10, c->y() + 20, 200, 20)); | 104 | QCOMPARE(transientClient->geometry(), QRect(c->x() + 10, c->y() + 20, 200, 20)); | ||
105 | QVERIFY(transientClient->isTransient()); | 105 | QVERIFY(transientClient->isTransient()); | ||
106 | QCOMPARE(transientClient->transientPlacementHint(), QPoint(10, 20)); | | |||
107 | QVERIFY(!transientClient->wantsInput()); | 106 | QVERIFY(!transientClient->wantsInput()); | ||
108 | 107 | | |||
109 | // workspace's active window should not have changed | 108 | // workspace's active window should not have changed | ||
110 | QCOMPARE(workspace()->activeClient(), c); | 109 | QCOMPARE(workspace()->activeClient(), c); | ||
111 | } | 110 | } | ||
112 | 111 | | |||
113 | } | 112 | } | ||
114 | 113 | | |||
115 | WAYLANDTEST_MAIN(KWin::TransientNoInputTest) | 114 | WAYLANDTEST_MAIN(KWin::TransientNoInputTest) | ||
116 | #include "transient_no_input_test.moc" | 115 | #include "transient_no_input_test.moc" |