[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
This commit is contained in:
Martin Flöser 2017-07-15 21:39:57 +02:00
parent 06a558e3de
commit 5cb91762be

View file

@ -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);