From 23d020c797f93b6825bbb2626f911ab19b65c173 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 15 Mar 2016 16:36:11 +0000 Subject: [PATCH] Redo workaround for plasma dialogs flickering Reviewed-by: David Rosca --- src/plasmaquick/dialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 56f39c074..7bb63c58f 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -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();