Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/transient_placement.cpp
Show First 20 Lines • Show All 334 Lines • ▼ Show 20 Line(s) | 284 | { | |||
---|---|---|---|---|---|
335 | QVERIFY(Test::waitForWindowDestroyed(transient)); | 335 | QVERIFY(Test::waitForWindowDestroyed(transient)); | ||
336 | 336 | | |||
337 | // now parent to fullscreen - on fullscreen the panel is ignored | 337 | // now parent to fullscreen - on fullscreen the panel is ignored | ||
338 | QSignalSpy fullscreenSpy{parentShellSurface, &XdgShellSurface::configureRequested}; | 338 | QSignalSpy fullscreenSpy{parentShellSurface, &XdgShellSurface::configureRequested}; | ||
339 | QVERIFY(fullscreenSpy.isValid()); | 339 | QVERIFY(fullscreenSpy.isValid()); | ||
340 | parent->setFullScreen(true); | 340 | parent->setFullScreen(true); | ||
341 | QVERIFY(fullscreenSpy.wait()); | 341 | QVERIFY(fullscreenSpy.wait()); | ||
342 | parentShellSurface->ackConfigure(fullscreenSpy.first().at(2).value<quint32>()); | 342 | parentShellSurface->ackConfigure(fullscreenSpy.first().at(2).value<quint32>()); | ||
343 | QSignalSpy geometryShapeChangedSpy{parent, &XdgShellClient::geometryShapeChanged}; | 343 | QSignalSpy frameGeometryChangedSpy{parent, &XdgShellClient::frameGeometryChanged}; | ||
344 | QVERIFY(geometryShapeChangedSpy.isValid()); | 344 | QVERIFY(frameGeometryChangedSpy.isValid()); | ||
345 | Test::render(parentSurface, fullscreenSpy.first().at(0).toSize(), Qt::red); | 345 | Test::render(parentSurface, fullscreenSpy.first().at(0).toSize(), Qt::red); | ||
346 | QVERIFY(geometryShapeChangedSpy.wait()); | 346 | QVERIFY(frameGeometryChangedSpy.wait()); | ||
347 | QCOMPARE(parent->frameGeometry(), screens()->geometry(0)); | 347 | QCOMPARE(parent->frameGeometry(), screens()->geometry(0)); | ||
348 | QVERIFY(parent->isFullScreen()); | 348 | QVERIFY(parent->isFullScreen()); | ||
349 | 349 | | |||
350 | // another transient, with same hints as before from bottom of window | 350 | // another transient, with same hints as before from bottom of window | ||
351 | transientSurface = Test::createSurface(Test::waylandCompositor()); | 351 | transientSurface = Test::createSurface(Test::waylandCompositor()); | ||
352 | QVERIFY(transientSurface); | 352 | QVERIFY(transientSurface); | ||
353 | 353 | | |||
354 | XdgPositioner positioner2(QSize(200,200), QRect(50,screens()->geometry(0).height()-100, 200,200)); | 354 | XdgPositioner positioner2(QSize(200,200), QRect(50,screens()->geometry(0).height()-100, 200,200)); | ||
Show All 14 Lines |