summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Martin <[email protected]>2019-01-11 17:02:08 +0100
committerMarco Martin <[email protected]>2019-01-11 17:12:56 +0100
commitcc8d3e7751859b703e09984d149268e0564a0124 (patch)
treea2118a06dfdb54a4d8d53191e47b2ad68802e5f1
parent41e3bcbd5702a917686dd8694e857461f0279897 (diff)
set skipTaskbar on SurfaceEvent::SurfaceCreated
Summary: makes sure the flag is set on time Test Plan: can't get the panelcontroller in the taskbar anymore Reviewers: #plasma, hein, broulik Reviewed By: #plasma, hein, broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D18186
-rw-r--r--shell/panelconfigview.cpp2
-rw-r--r--shell/panelview.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/shell/panelconfigview.cpp b/shell/panelconfigview.cpp
index f7a1456..1aafc88 100644
--- a/shell/panelconfigview.cpp
+++ b/shell/panelconfigview.cpp
@@ -238,6 +238,8 @@ bool PanelConfigView::event(QEvent *e)
if (e->type() == QEvent::PlatformSurface) {
switch (static_cast<QPlatformSurfaceEvent*>(e)->surfaceEventType()) {
case QPlatformSurfaceEvent::SurfaceCreated:
+ KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
+
if (m_shellSurface) {
break;
}
diff --git a/shell/panelview.cpp b/shell/panelview.cpp
index 1849620..2cdc1e1 100644
--- a/shell/panelview.cpp
+++ b/shell/panelview.cpp
@@ -587,7 +587,6 @@ void PanelView::showConfigurationInterface(Plasma::Applet *applet)
m_panelConfigView->hide();
} else {
m_panelConfigView->show();
- KWindowSystem::setState(m_panelConfigView.data()->winId(), NET::SkipTaskbar | NET::SkipPager);
}
return;
}