Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/decoration_input_test.cpp
Show All 20 Lines | |||||
21 | #include "abstract_client.h" | 21 | #include "abstract_client.h" | ||
22 | #include "cursor.h" | 22 | #include "cursor.h" | ||
23 | #include "internal_client.h" | 23 | #include "internal_client.h" | ||
24 | #include "platform.h" | 24 | #include "platform.h" | ||
25 | #include "pointer_input.h" | 25 | #include "pointer_input.h" | ||
26 | #include "touch_input.h" | 26 | #include "touch_input.h" | ||
27 | #include "screenedge.h" | 27 | #include "screenedge.h" | ||
28 | #include "screens.h" | 28 | #include "screens.h" | ||
29 | #include "xdgshellclient.h" | | |||
30 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
31 | #include "workspace.h" | 30 | #include "workspace.h" | ||
32 | #include <kwineffects.h> | 31 | #include <kwineffects.h> | ||
33 | 32 | | |||
34 | #include "decorations/decoratedclient.h" | 33 | #include "decorations/decoratedclient.h" | ||
35 | #include "decorations/decorationbridge.h" | 34 | #include "decorations/decorationbridge.h" | ||
36 | #include "decorations/settings.h" | 35 | #include "decorations/settings.h" | ||
37 | 36 | | |||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 128 | #undef COMPARE | |||
130 | 129 | | |||
131 | return c; | 130 | return c; | ||
132 | } | 131 | } | ||
133 | 132 | | |||
134 | void DecorationInputTest::initTestCase() | 133 | void DecorationInputTest::initTestCase() | ||
135 | { | 134 | { | ||
136 | qRegisterMetaType<KWin::AbstractClient *>(); | 135 | qRegisterMetaType<KWin::AbstractClient *>(); | ||
137 | qRegisterMetaType<KWin::InternalClient *>(); | 136 | qRegisterMetaType<KWin::InternalClient *>(); | ||
138 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
139 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 137 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
140 | QVERIFY(workspaceCreatedSpy.isValid()); | 138 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
141 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 139 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
142 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 140 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
143 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 141 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
144 | 142 | | |||
145 | // change some options | 143 | // change some options | ||
146 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 144 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 742 Lines • Show Last 20 Lines |