From a707731607c5accbc99e813fc3fd3422eec53483 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Thu, 16 Jul 2020 20:18:30 -0600 Subject: [PATCH] Don't show Plasma dialogs in task switchers Plasma dialogs are already marked as not being shown in the task manager and the pager. We should similarly omit them from the task switcher, for the same reasons. BUG: 419239 FIXED-IN: 5.73 --- src/plasmaquick/dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 902c29485..161ef2ffa 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -1198,7 +1198,7 @@ void Dialog::showEvent(QShowEvent *event) DialogShadows::self()->addWindow(this, d->frameSvgItem->enabledBorders()); } - KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); + KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher); QQuickWindow::showEvent(event); } @@ -1225,7 +1225,7 @@ bool Dialog::event(QEvent *event) //sometimes non null regions arrive even for non visible windows //for which surface creation would fail if (!d->shellSurface && isVisible()) { - KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); + KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher); d->setupWaylandIntegration(); d->updateVisibility(true); d->updateTheme(); @@ -1235,7 +1235,7 @@ bool Dialog::event(QEvent *event) const QPlatformSurfaceEvent *pSEvent = static_cast(event); if (pSEvent->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) { - KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); + KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher); } } else if (event->type() == QEvent::Show) { d->updateVisibility(true);