Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 47 | WaylandTestApplication::WaylandTestApplication(OperationMode mode, int &argc, char **argv) | |||
---|---|---|---|---|---|
48 | : Application(mode, argc, argv) | 48 | : Application(mode, argc, argv) | ||
49 | { | 49 | { | ||
50 | QStandardPaths::setTestModeEnabled(true); | 50 | QStandardPaths::setTestModeEnabled(true); | ||
51 | QIcon::setThemeName(QStringLiteral("breeze")); | 51 | QIcon::setThemeName(QStringLiteral("breeze")); | ||
52 | #ifdef KWIN_BUILD_ACTIVITIES | 52 | #ifdef KWIN_BUILD_ACTIVITIES | ||
53 | setUseKActivities(false); | 53 | setUseKActivities(false); | ||
54 | #endif | 54 | #endif | ||
55 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("Q")); | 55 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("Q")); | ||
56 | qunsetenv("XKB_DEFAULT_RULES"); | ||||
57 | qunsetenv("XKB_DEFAULT_MODEL"); | ||||
58 | qunsetenv("XKB_DEFAULT_LAYOUT"); | ||||
59 | qunsetenv("XKB_DEFAULT_VARIANT"); | ||||
60 | qunsetenv("XKB_DEFAULT_OPTIONS"); | ||||
56 | initPlatform(KPluginMetaData(QStringLiteral("KWinWaylandVirtualBackend.so"))); | 61 | initPlatform(KPluginMetaData(QStringLiteral("KWinWaylandVirtualBackend.so"))); | ||
57 | WaylandServer::create(this); | 62 | WaylandServer::create(this); | ||
58 | } | 63 | } | ||
59 | 64 | | |||
60 | WaylandTestApplication::~WaylandTestApplication() | 65 | WaylandTestApplication::~WaylandTestApplication() | ||
61 | { | 66 | { | ||
62 | kwinApp()->platform()->setOutputsEnabled(false); | 67 | kwinApp()->platform()->setOutputsEnabled(false); | ||
63 | // need to unload all effects prior to destroying X connection as they might do X calls | 68 | // need to unload all effects prior to destroying X connection as they might do X calls | ||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |