Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/slidingpopups_test.cpp
Show All 30 Lines | |||||
31 | #include "workspace.h" | 31 | #include "workspace.h" | ||
32 | #include "effect_builtins.h" | 32 | #include "effect_builtins.h" | ||
33 | 33 | | |||
34 | #include <KConfigGroup> | 34 | #include <KConfigGroup> | ||
35 | 35 | | |||
36 | #include <KWayland/Client/connection_thread.h> | 36 | #include <KWayland/Client/connection_thread.h> | ||
37 | #include <KWayland/Client/registry.h> | 37 | #include <KWayland/Client/registry.h> | ||
38 | #include <KWayland/Client/surface.h> | 38 | #include <KWayland/Client/surface.h> | ||
39 | #include <KWayland/Client/shell.h> | | |||
40 | #include <KWayland/Client/slide.h> | 39 | #include <KWayland/Client/slide.h> | ||
41 | 40 | | |||
42 | #include <netwm.h> | 41 | #include <netwm.h> | ||
43 | #include <xcb/xcb_icccm.h> | 42 | #include <xcb/xcb_icccm.h> | ||
44 | 43 | | |||
45 | using namespace KWin; | 44 | using namespace KWin; | ||
46 | static const QString s_socketName = QStringLiteral("wayland_test_effects_slidingpopups-0"); | 45 | static const QString s_socketName = QStringLiteral("wayland_test_effects_slidingpopups-0"); | ||
47 | 46 | | |||
▲ Show 20 Lines • Show All 284 Lines • ▼ Show 20 Line(s) | 282 | { | |||
332 | QVERIFY(slideManager); | 331 | QVERIFY(slideManager); | ||
333 | 332 | | |||
334 | // create Wayland window | 333 | // create Wayland window | ||
335 | QScopedPointer<Surface> surface(Test::createSurface()); | 334 | QScopedPointer<Surface> surface(Test::createSurface()); | ||
336 | QVERIFY(surface); | 335 | QVERIFY(surface); | ||
337 | QScopedPointer<Slide> slide(slideManager->createSlide(surface.data())); | 336 | QScopedPointer<Slide> slide(slideManager->createSlide(surface.data())); | ||
338 | slide->setLocation(Slide::Location::Left); | 337 | slide->setLocation(Slide::Location::Left); | ||
339 | slide->commit(); | 338 | slide->commit(); | ||
340 | QScopedPointer<ShellSurface> shellSurface(Test::createShellSurface(surface.data())); | 339 | QScopedPointer<XdgShellSurface> shellSurface(Test::createXdgShellStableSurface(surface.data())); | ||
341 | QVERIFY(shellSurface); | 340 | QVERIFY(shellSurface); | ||
342 | QCOMPARE(windowAddedSpy.count(), 0); | 341 | QCOMPARE(windowAddedSpy.count(), 0); | ||
343 | auto client = Test::renderAndWaitForShown(surface.data(), QSize(10, 20), Qt::blue); | 342 | auto client = Test::renderAndWaitForShown(surface.data(), QSize(10, 20), Qt::blue); | ||
344 | QVERIFY(client); | 343 | QVERIFY(client); | ||
345 | QVERIFY(client->isNormalWindow()); | 344 | QVERIFY(client->isNormalWindow()); | ||
346 | 345 | | |||
347 | // sliding popups should be active | 346 | // sliding popups should be active | ||
348 | QCOMPARE(windowAddedSpy.count(), 1); | 347 | QCOMPARE(windowAddedSpy.count(), 1); | ||
Show All 33 Lines |