Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/pointer_input.cpp
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | |||||
142 | void PointerInputTest::initTestCase() | 142 | void PointerInputTest::initTestCase() | ||
143 | { | 143 | { | ||
144 | qRegisterMetaType<KWin::ShellClient*>(); | 144 | qRegisterMetaType<KWin::ShellClient*>(); | ||
145 | qRegisterMetaType<KWin::AbstractClient*>(); | 145 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
146 | qRegisterMetaType<KWin::Deleted*>(); | 146 | qRegisterMetaType<KWin::Deleted*>(); | ||
147 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 147 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
148 | QVERIFY(workspaceCreatedSpy.isValid()); | 148 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
149 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 149 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
150 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
151 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 150 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
151 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
152 | 152 | | |||
153 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 153 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
154 | 154 | | |||
155 | if (!QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("icons/DMZ-White/index.theme")).isEmpty()) { | 155 | if (!QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("icons/DMZ-White/index.theme")).isEmpty()) { | ||
156 | qputenv("XCURSOR_THEME", QByteArrayLiteral("DMZ-White")); | 156 | qputenv("XCURSOR_THEME", QByteArrayLiteral("DMZ-White")); | ||
157 | } else { | 157 | } else { | ||
158 | // might be vanilla-dmz (e.g. Arch, FreeBSD) | 158 | // might be vanilla-dmz (e.g. Arch, FreeBSD) | ||
159 | qputenv("XCURSOR_THEME", QByteArrayLiteral("Vanilla-DMZ")); | 159 | qputenv("XCURSOR_THEME", QByteArrayLiteral("Vanilla-DMZ")); | ||
▲ Show 20 Lines • Show All 1445 Lines • Show Last 20 Lines |