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