Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_aurorae_destroy_deco.cpp
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 92 | { | |||
---|---|---|---|---|---|
130 | // mark the window as ready for painting, otherwise it doesn't get input events | 130 | // mark the window as ready for painting, otherwise it doesn't get input events | ||
131 | QMetaObject::invokeMethod(client, "setReadyForPainting"); | 131 | QMetaObject::invokeMethod(client, "setReadyForPainting"); | ||
132 | QVERIFY(client->readyForPainting()); | 132 | QVERIFY(client->readyForPainting()); | ||
133 | 133 | | |||
134 | // simulate click on maximize button | 134 | // simulate click on maximize button | ||
135 | QSignalSpy maximizedStateChangedSpy(client, static_cast<void (AbstractClient::*)(KWin::AbstractClient*, MaximizeMode)>(&AbstractClient::clientMaximizedStateChanged)); | 135 | QSignalSpy maximizedStateChangedSpy(client, static_cast<void (AbstractClient::*)(KWin::AbstractClient*, MaximizeMode)>(&AbstractClient::clientMaximizedStateChanged)); | ||
136 | QVERIFY(maximizedStateChangedSpy.isValid()); | 136 | QVERIFY(maximizedStateChangedSpy.isValid()); | ||
137 | quint32 timestamp = 1; | 137 | quint32 timestamp = 1; | ||
138 | kwinApp()->platform()->pointerMotion(client->geometry().topLeft() + scenePoint.toPoint(), timestamp++); | 138 | kwinApp()->platform()->pointerMotion(client->frameGeometry().topLeft() + scenePoint.toPoint(), timestamp++); | ||
139 | kwinApp()->platform()->pointerButtonPressed(BTN_LEFT, timestamp++); | 139 | kwinApp()->platform()->pointerButtonPressed(BTN_LEFT, timestamp++); | ||
140 | kwinApp()->platform()->pointerButtonReleased(BTN_LEFT, timestamp++); | 140 | kwinApp()->platform()->pointerButtonReleased(BTN_LEFT, timestamp++); | ||
141 | QVERIFY(maximizedStateChangedSpy.wait()); | 141 | QVERIFY(maximizedStateChangedSpy.wait()); | ||
142 | QCOMPARE(client->maximizeMode(), MaximizeFull); | 142 | QCOMPARE(client->maximizeMode(), MaximizeFull); | ||
143 | QCOMPARE(client->noBorder(), true); | 143 | QCOMPARE(client->noBorder(), true); | ||
144 | 144 | | |||
145 | // and destroy the window again | 145 | // and destroy the window again | ||
146 | xcb_unmap_window(c, w); | 146 | xcb_unmap_window(c, w); | ||
Show All 13 Lines |