Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_no_border.cpp
Show All 22 Lines | |||||
23 | #include "x11client.h" | 23 | #include "x11client.h" | ||
24 | #include "composite.h" | 24 | #include "composite.h" | ||
25 | #include "cursor.h" | 25 | #include "cursor.h" | ||
26 | #include "scene.h" | 26 | #include "scene.h" | ||
27 | #include "screenedge.h" | 27 | #include "screenedge.h" | ||
28 | #include "screens.h" | 28 | #include "screens.h" | ||
29 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
30 | #include "workspace.h" | 30 | #include "workspace.h" | ||
31 | #include "xdgshellclient.h" | | |||
32 | #include <kwineffects.h> | 31 | #include <kwineffects.h> | ||
33 | 32 | | |||
34 | #include <KWayland/Client/server_decoration.h> | 33 | #include <KWayland/Client/server_decoration.h> | ||
35 | #include <KWayland/Client/surface.h> | 34 | #include <KWayland/Client/surface.h> | ||
36 | 35 | | |||
37 | #include <KDecoration2/Decoration> | 36 | #include <KDecoration2/Decoration> | ||
38 | 37 | | |||
39 | #include <linux/input.h> | 38 | #include <linux/input.h> | ||
Show All 11 Lines | 48 | private Q_SLOTS: | |||
51 | void init(); | 50 | void init(); | ||
52 | void cleanup(); | 51 | void cleanup(); | ||
53 | void testCreateWindow_data(); | 52 | void testCreateWindow_data(); | ||
54 | void testCreateWindow(); | 53 | void testCreateWindow(); | ||
55 | }; | 54 | }; | ||
56 | 55 | | |||
57 | void DontCrashNoBorder::initTestCase() | 56 | void DontCrashNoBorder::initTestCase() | ||
58 | { | 57 | { | ||
59 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
60 | qRegisterMetaType<KWin::AbstractClient*>(); | 58 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 59 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
62 | QVERIFY(workspaceCreatedSpy.isValid()); | 60 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 61 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
64 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 62 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
65 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 63 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
66 | 64 | | |||
67 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 65 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |