Commit 745e2c08 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix overdraw on Wayland

Since the DesktopView has "transparent" clear color, it will allocate a
buffer with an alpha channel and QtWayland won't be able to set an
opaque region. This change sets the clear color of DesktopView to "black"
so overdraw can be fixed in kwin and to improve render performance on
wayland.
parent aa295bd3
Pipeline #140098 passed with stage
in 5 minutes and 57 seconds
......@@ -34,6 +34,8 @@ DesktopView::DesktopView(Plasma::Corona *corona, QScreen *targetScreen)
, m_shellSurface(nullptr)
{
QObject::setParent(corona);
setColor(Qt::black);
if (targetScreen) {
setScreenToFollow(targetScreen);
setScreen(targetScreen);
......
Supports Markdown
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