Use 2D QMl Renderer on QPainter compositor
Closed, ResolvedPublic

Description

When trying to use OpenGL inside KWin with the QPainter compositor it can - in worst case - result in a freeze. If QPainter is used, chances are high that OpenGL doesn't work. So QML should also not use OpenGL, 2D renderer should be enabled.

graesslin triaged this task as Normal priority.

There's a challenge with this:

QQuickWindow::setSceneGraphBackend only matters before the first window is created.
Adding is easy, but given you can switch between Scene backends, that gives us 4 combinations to support.

I was going to add a KCM for QtQuick settings in general, kwin can at the least load that.

davidedmundson moved this task from Backlog to Under Review on the KWin board.Sep 28 2017, 6:37 PM
davidedmundson moved this task from Under Review to Work In Progress on the KWin board.

So I've made it work correctly and made KWin load Plasma's settings.
(it's loaded via kconfig, so any app can override in their appnamerc)

Making it change at runtime is not something Qt *currently* supports; at which point tying it in to the current render engine I don't think makes too much sense.

davidedmundson moved this task from Work In Progress to Done on the KWin board.Apr 9 2018, 5:59 PM
romangg closed this task as Resolved.Sep 16 2019, 12:14 PM