Redo workaround for plasma dialogs flickering
Reviewed-by: David Rosca
This commit is contained in:
parent
a9c1427eb1
commit
23d020c797
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user