10#include "compositor.h"
18#include <KConfigGroup>
22static const QString s_socketName = QStringLiteral(
"wayland_test_kwin_scene_opengl-0");
26 , m_envVariable(envVariable)
34void GenericSceneOpenGLTest::cleanup()
39void GenericSceneOpenGLTest::initTestCase()
42 QSKIP(
"no render node available");
45 qRegisterMetaType<KWin::Window *>();
49 QRect(0, 0, 1280, 1024),
50 QRect(1280, 0, 1280, 1024),
54 auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig);
55 KConfigGroup plugins(config, QStringLiteral(
"Plugins"));
57 for (QString name : builtinNames) {
58 plugins.writeEntry(name + QStringLiteral(
"Enabled"),
false);
62 kwinApp()->setConfig(config);
64 qputenv(
"XCURSOR_THEME", QByteArrayLiteral(
"DMZ-White"));
65 qputenv(
"XCURSOR_SIZE", QByteArrayLiteral(
"24"));
66 qputenv(
"KWIN_COMPOSE", m_envVariable);
69 QVERIFY(applicationStartedSpy.wait());
75void GenericSceneOpenGLTest::testRestart()
80 if (sceneCreatedSpy.isEmpty()) {
81 QVERIFY(sceneCreatedSpy.wait());
83 QCOMPARE(sceneCreatedSpy.count(), 1);
93#include "moc_generic_scene_opengl_test.cpp"
GenericSceneOpenGLTest(const QByteArray &envVariable)
~GenericSceneOpenGLTest() override
WorkspaceScene * scene() const
virtual void reinitialize()
static Compositor * self()
QStringList listOfKnownEffects() const override
All the Effects this loader knows of.
void destroyWaylandConnection()
void setOutputConfig(const QList< QRect > &geometries)
bool renderNodeAvailable()
void init(xcb_connection_t *connection, xcb_window_t rootWindow)
WaylandServer * waylandServer()