Redo workaround for plasma dialogs flickering

Reviewed-by: David Rosca
This commit is contained in:
David Edmundson 2016-03-15 16:36:11 +00:00
parent a9c1427eb1
commit 23d020c797

View File

@ -1188,6 +1188,9 @@ void Dialog::componentComplete()
{
d->componentComplete = true;
QQuickWindow::setVisible(d->visible);
if (d->visible) {
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
}
d->updateTheme();
@ -1239,6 +1242,9 @@ void Dialog::setVisible(bool visible)
setPosition(popupPosition(d->visualParent, size()));
}
QQuickWindow::setVisible(visible);
if (visible) {
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
}
//signal will be emitted and proxied from the QQuickWindow code
} else {
emit visibleChangedProxy();