Commit 8f4b6a89 authored by Martin Flöser's avatar Martin Flöser

Drop the explicit fallback to XRender

Summary:
With the new try of all compositor types supported there is an automatic
fallback from OpenGL to XRender/QPainter in case OpenGL setup failed.
So there is no need to invoke a method to do just that.

Reviewers: #kwin, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8364
parent 729bfd04
......@@ -477,17 +477,6 @@ void Compositor::deleteUnusedSupportProperties()
}
}
// OpenGL self-check failed, fallback to XRender
void Compositor::fallbackToXRenderCompositing()
{
finish();
KConfigGroup config(kwinApp()->config(), "Compositing");
config.writeEntry("Backend", "XRender");
config.sync();
options->setCompositingMode(XRenderCompositing);
setup();
}
void Compositor::slotConfigChanged()
{
if (!m_suspended) {
......
......@@ -193,7 +193,6 @@ private Q_SLOTS:
* That is the Compositor will be stopped and started again.
**/
void restart();
void fallbackToXRenderCompositing();
void performCompositing();
void slotConfigChanged();
void releaseCompositorSelection();
......
......@@ -510,7 +510,6 @@ SceneOpenGL *SceneOpenGL::createScene(QObject *parent)
qCCritical(KWIN_OPENGL) << "OpenGL driver recommends XRender based compositing. Falling back to XRender.";
qCCritical(KWIN_OPENGL) << "To overwrite the detection use the environment variable KWIN_COMPOSE";
qCCritical(KWIN_OPENGL) << "For more information see http://community.kde.org/KWin/Environment_Variables#KWIN_COMPOSE";
QTimer::singleShot(0, Compositor::self(), SLOT(fallbackToXRenderCompositing()));
}
delete backend;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment