From 28b4400da8481251084ac38b26b4347703a3ab54 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 19 Mar 2016 09:01:40 +0100 Subject: [PATCH] Dialog: Set SkipTaskbar/Pager states before showing window This sets the states before showing the window and is a proper fix for the linked bug. Needs e4cea305ed2ba3c9f580bf9d16c59a1048af0e8a from qtbase - Qt 5.6.1 CCBUG: 332024 REVIEW: 127422 --- src/plasmaquick/dialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 7bb63c58f..be7406725 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -1066,6 +1066,10 @@ void Dialog::showEvent(QShowEvent *event) if (d->backgroundHints != Dialog::NoBackground) { DialogShadows::self()->addWindow(this, d->frameSvgItem->enabledBorders()); } + + // TODO: Remove this call from other places once we can depend on Qt >= 5.6.1 + KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); + QQuickWindow::showEvent(event); }