Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_no_border.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | 57 | | |||
58 | void DontCrashNoBorder::initTestCase() | 58 | void DontCrashNoBorder::initTestCase() | ||
59 | { | 59 | { | ||
60 | qRegisterMetaType<KWin::ShellClient*>(); | 60 | qRegisterMetaType<KWin::ShellClient*>(); | ||
61 | qRegisterMetaType<KWin::AbstractClient*>(); | 61 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
62 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 62 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
63 | QVERIFY(workspaceCreatedSpy.isValid()); | 63 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
64 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 64 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
65 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
66 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
66 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
67 | 67 | | |||
68 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 68 | KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
69 | config->group("org.kde.kdecoration2").writeEntry("NoPlugin", true); | 69 | config->group("org.kde.kdecoration2").writeEntry("NoPlugin", true); | ||
70 | config->sync(); | 70 | config->sync(); | ||
71 | kwinApp()->setConfig(config); | 71 | kwinApp()->setConfig(config); | ||
72 | 72 | | |||
73 | // this test needs to enforce OpenGL compositing to get into the crashy condition | 73 | // this test needs to enforce OpenGL compositing to get into the crashy condition | ||
74 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("O2")); | 74 | qputenv("KWIN_COMPOSE", QByteArrayLiteral("O2")); | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |