Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/input_stacking_order.cpp
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 112 | { | |||
---|---|---|---|---|---|
145 | QVERIFY(clientAddedSpy.wait()); | 145 | QVERIFY(clientAddedSpy.wait()); | ||
146 | 146 | | |||
147 | AbstractClient *window2 = workspace()->activeClient(); | 147 | AbstractClient *window2 = workspace()->activeClient(); | ||
148 | QVERIFY(window2); | 148 | QVERIFY(window2); | ||
149 | QVERIFY(window1 != window2); | 149 | QVERIFY(window1 != window2); | ||
150 | 150 | | |||
151 | // now make windows overlap | 151 | // now make windows overlap | ||
152 | window2->move(window1->pos()); | 152 | window2->move(window1->pos()); | ||
153 | QCOMPARE(window1->geometry(), window2->geometry()); | 153 | QCOMPARE(window1->frameGeometry(), window2->frameGeometry()); | ||
154 | 154 | | |||
155 | // enter | 155 | // enter | ||
156 | kwinApp()->platform()->pointerMotion(QPointF(25, 25), 1); | 156 | kwinApp()->platform()->pointerMotion(QPointF(25, 25), 1); | ||
157 | QVERIFY(enteredSpy.wait()); | 157 | QVERIFY(enteredSpy.wait()); | ||
158 | QCOMPARE(enteredSpy.count(), 1); | 158 | QCOMPARE(enteredSpy.count(), 1); | ||
159 | // window 2 should have focus | 159 | // window 2 should have focus | ||
160 | QCOMPARE(pointer->enteredSurface(), surface2); | 160 | QCOMPARE(pointer->enteredSurface(), surface2); | ||
161 | // also on the server | 161 | // also on the server | ||
Show All 28 Lines |