Remove WA_PaintOnScreen attribute from decoration widget

With this attribute set the QPainter on the widget() never gets active
in non composited rendering and thus the decoration does not get rendered
at all.
This commit is contained in:
Martin Gräßlin 2013-10-02 07:49:54 +02:00
parent 93a94d3f1f
commit 23a354f4d8

View file

@ -93,7 +93,6 @@ void KDecoration::createMainWidget(Qt::WindowFlags flags)
// FRAME check flags?
QWidget *w = new QWidget(initialParentWidget(), initialWFlags() | flags);
w->setObjectName(QLatin1String("decoration widget"));
w->setAttribute(Qt::WA_PaintOnScreen);
if (options()->showTooltips())
w->setAttribute(Qt::WA_AlwaysShowToolTips);
setMainWidget(w);