Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/lockscreen.cpp
Show All 21 Lines | |||||
22 | #include "abstract_client.h" | 22 | #include "abstract_client.h" | ||
23 | #include "composite.h" | 23 | #include "composite.h" | ||
24 | #include "cursor.h" | 24 | #include "cursor.h" | ||
25 | #include "scene.h" | 25 | #include "scene.h" | ||
26 | #include "screenedge.h" | 26 | #include "screenedge.h" | ||
27 | #include "screens.h" | 27 | #include "screens.h" | ||
28 | #include "wayland_server.h" | 28 | #include "wayland_server.h" | ||
29 | #include "workspace.h" | 29 | #include "workspace.h" | ||
30 | #include "xdgshellclient.h" | | |||
31 | #include <kwineffects.h> | 30 | #include <kwineffects.h> | ||
32 | 31 | | |||
33 | #include <KWayland/Client/connection_thread.h> | 32 | #include <KWayland/Client/connection_thread.h> | ||
34 | #include <KWayland/Client/compositor.h> | 33 | #include <KWayland/Client/compositor.h> | ||
35 | #include <KWayland/Client/keyboard.h> | 34 | #include <KWayland/Client/keyboard.h> | ||
36 | #include <KWayland/Client/registry.h> | 35 | #include <KWayland/Client/registry.h> | ||
37 | #include <KWayland/Client/pointer.h> | 36 | #include <KWayland/Client/pointer.h> | ||
38 | #include <KWayland/Client/seat.h> | 37 | #include <KWayland/Client/seat.h> | ||
▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Line(s) | |||||
178 | #undef VERIFY | 177 | #undef VERIFY | ||
179 | #undef COMPARE | 178 | #undef COMPARE | ||
180 | 179 | | |||
181 | return c; | 180 | return c; | ||
182 | } | 181 | } | ||
183 | 182 | | |||
184 | void LockScreenTest::initTestCase() | 183 | void LockScreenTest::initTestCase() | ||
185 | { | 184 | { | ||
186 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
187 | qRegisterMetaType<KWin::AbstractClient*>(); | 185 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
188 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 186 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
189 | QVERIFY(workspaceCreatedSpy.isValid()); | 187 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
190 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 188 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
191 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 189 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
192 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 190 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
193 | 191 | | |||
194 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("O2")); | 192 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("O2")); | ||
▲ Show 20 Lines • Show All 574 Lines • Show Last 20 Lines |