Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_cursor_physical_size_empty.cpp
Show All 18 Lines | |||||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "composite.h" | 21 | #include "composite.h" | ||
22 | #include "effectloader.h" | 22 | #include "effectloader.h" | ||
23 | #include "x11client.h" | 23 | #include "x11client.h" | ||
24 | #include "cursor.h" | 24 | #include "cursor.h" | ||
25 | #include "effects.h" | 25 | #include "effects.h" | ||
26 | #include "platform.h" | 26 | #include "platform.h" | ||
27 | #include "xdgshellclient.h" | | |||
28 | #include "screens.h" | 27 | #include "screens.h" | ||
29 | #include "wayland_server.h" | 28 | #include "wayland_server.h" | ||
30 | #include "workspace.h" | 29 | #include "workspace.h" | ||
31 | 30 | | |||
32 | #include <KConfigGroup> | 31 | #include <KConfigGroup> | ||
33 | 32 | | |||
34 | #include <KWayland/Client/seat.h> | 33 | #include <KWayland/Client/seat.h> | ||
35 | #include <KWayland/Client/server_decoration.h> | 34 | #include <KWayland/Client/server_decoration.h> | ||
Show All 26 Lines | |||||
62 | 61 | | |||
63 | void DontCrashCursorPhysicalSizeEmpty::cleanup() | 62 | void DontCrashCursorPhysicalSizeEmpty::cleanup() | ||
64 | { | 63 | { | ||
65 | Test::destroyWaylandConnection(); | 64 | Test::destroyWaylandConnection(); | ||
66 | } | 65 | } | ||
67 | 66 | | |||
68 | void DontCrashCursorPhysicalSizeEmpty::initTestCase() | 67 | void DontCrashCursorPhysicalSizeEmpty::initTestCase() | ||
69 | { | 68 | { | ||
70 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
71 | qRegisterMetaType<KWin::AbstractClient*>(); | 69 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
72 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 70 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
73 | QVERIFY(workspaceCreatedSpy.isValid()); | 71 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
74 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 72 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
75 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 73 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
76 | 74 | | |||
77 | if (!QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("icons/DMZ-White/index.theme")).isEmpty()) { | 75 | if (!QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("icons/DMZ-White/index.theme")).isEmpty()) { | ||
78 | qputenv("XCURSOR_THEME", QByteArrayLiteral("DMZ-White")); | 76 | qputenv("XCURSOR_THEME", QByteArrayLiteral("DMZ-White")); | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |