Changeset View
Changeset View
Standalone View
Standalone View
composite.cpp
Show First 20 Lines • Show All 254 Lines • ▼ Show 20 Line(s) | 246 | if (m_scene == NULL || m_scene->initFailed()) { | |||
---|---|---|---|---|---|
255 | if (!supportedCompositors.contains(NoCompositing)) { | 255 | if (!supportedCompositors.contains(NoCompositing)) { | ||
256 | qCCritical(KWIN_CORE) << "The used windowing system requires compositing"; | 256 | qCCritical(KWIN_CORE) << "The used windowing system requires compositing"; | ||
257 | qCCritical(KWIN_CORE) << "We are going to quit KWin now as it is broken"; | 257 | qCCritical(KWIN_CORE) << "We are going to quit KWin now as it is broken"; | ||
258 | qApp->quit(); | 258 | qApp->quit(); | ||
259 | } | 259 | } | ||
260 | return; | 260 | return; | ||
261 | } | 261 | } | ||
262 | 262 | | |||
263 | kwinApp()->platform()->setSelectedCompositor(m_scene->compositingType() & OpenGLCompositing ? OpenGLCompositing : m_scene->compositingType()); | ||||
264 | | ||||
263 | if (!Workspace::self() && m_scene && m_scene->compositingType() == QPainterCompositing) { | 265 | if (!Workspace::self() && m_scene && m_scene->compositingType() == QPainterCompositing) { | ||
264 | // Force Software QtQuick on first startup with QPainter | 266 | // Force Software QtQuick on first startup with QPainter | ||
265 | QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software); | 267 | QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software); | ||
266 | } | 268 | } | ||
267 | 269 | | |||
268 | connect(m_scene, &Scene::resetCompositing, this, &Compositor::restart); | 270 | connect(m_scene, &Scene::resetCompositing, this, &Compositor::restart); | ||
269 | emit sceneCreated(); | 271 | emit sceneCreated(); | ||
270 | 272 | | |||
▲ Show 20 Lines • Show All 943 Lines • Show Last 20 Lines |