From 5cb91762be43b4303a1864accc545a6fe26aa9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Sat, 15 Jul 2017 21:39:57 +0200 Subject: [PATCH] [aurorae] Mark the render QQuickWindow as frameless Summary: On Wayland aurorae was creating a lot of stress for the system and basically turning the system unusable in a short time. This was due to a recursion starting to create OpenGL contexts. The window created a decoration (aurorae) which created a QQuickWindow. For that KWin creates an internal window which in turn triggers the creation of a window decoration and so on and on. By simply setting the render QQuickWindow as frameless we can prevent this recursion. Test Plan: Tested on Wayland and X11. On Wayland the recursion is gone. Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D6726 --- plugins/kdecorations/aurorae/src/aurorae.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/kdecorations/aurorae/src/aurorae.cpp b/plugins/kdecorations/aurorae/src/aurorae.cpp index 1fce657890..c2f625d34c 100644 --- a/plugins/kdecorations/aurorae/src/aurorae.cpp +++ b/plugins/kdecorations/aurorae/src/aurorae.cpp @@ -339,6 +339,7 @@ void Decoration::init() m_renderControl = new QQuickRenderControl(this); m_view = new QQuickWindow(m_renderControl); m_view->setColor(Qt::transparent); + m_view->setFlags(Qt::FramelessWindowHint); // delay rendering a little bit for better performance m_updateTimer.reset(new QTimer);