Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/translucency_test.cpp
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 124 | { | |||
---|---|---|---|---|---|
159 | QVERIFY(windowAddedSpy.wait()); | 159 | QVERIFY(windowAddedSpy.wait()); | ||
160 | QVERIFY(!m_translucencyEffect->isActive()); | 160 | QVERIFY(!m_translucencyEffect->isActive()); | ||
161 | // let's send the window to desktop 2 | 161 | // let's send the window to desktop 2 | ||
162 | effects->setNumberOfDesktops(2); | 162 | effects->setNumberOfDesktops(2); | ||
163 | QCOMPARE(effects->numberOfDesktops(), 2); | 163 | QCOMPARE(effects->numberOfDesktops(), 2); | ||
164 | workspace()->sendClientToDesktop(client, 2, false); | 164 | workspace()->sendClientToDesktop(client, 2, false); | ||
165 | effects->setCurrentDesktop(2); | 165 | effects->setCurrentDesktop(2); | ||
166 | QVERIFY(!m_translucencyEffect->isActive()); | 166 | QVERIFY(!m_translucencyEffect->isActive()); | ||
167 | KWin::Cursor::setPos(client->geometry().center()); | 167 | KWin::Cursor::setPos(client->frameGeometry().center()); | ||
168 | workspace()->performWindowOperation(client, Options::MoveOp); | 168 | workspace()->performWindowOperation(client, Options::MoveOp); | ||
169 | QVERIFY(m_translucencyEffect->isActive()); | 169 | QVERIFY(m_translucencyEffect->isActive()); | ||
170 | QTest::qWait(200); | 170 | QTest::qWait(200); | ||
171 | QVERIFY(m_translucencyEffect->isActive()); | 171 | QVERIFY(m_translucencyEffect->isActive()); | ||
172 | // now end move resize | 172 | // now end move resize | ||
173 | client->endMoveResize(); | 173 | client->endMoveResize(); | ||
174 | QVERIFY(m_translucencyEffect->isActive()); | 174 | QVERIFY(m_translucencyEffect->isActive()); | ||
175 | QTest::qWait(500); | 175 | QTest::qWait(500); | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |