From d2c7ee7aaeaa90d0e333fc95766fb36532e98ed4 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 3 Jun 2014 14:05:28 +0200 Subject: [PATCH] don't show dashboard in task manager since people find it too weird, hide dashboard from task manager *but* it's going to stay under the panel, and windows are still going to be capable to cover it BUG:332691 --- shell/desktopview.cpp | 5 +++-- shell/widgetexplorer/plasmoids.knsrc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/shell/desktopview.cpp b/shell/desktopview.cpp index 5ed358a09..a1b14dfc1 100644 --- a/shell/desktopview.cpp +++ b/shell/desktopview.cpp @@ -126,7 +126,8 @@ void DesktopView::setDashboardShown(bool shown) if (shown) { if (m_stayBehind) { KWindowSystem::setType(winId(), NET::Normal); - KWindowSystem::clearState(winId(), NET::SkipTaskbar|NET::KeepBelow); + KWindowSystem::clearState(winId(), NET::KeepBelow); + KWindowSystem::setState(winId(), NET::SkipTaskbar|NET::SkipPager); } setFlags(Qt::FramelessWindowHint | Qt::CustomizeWindowHint); @@ -160,7 +161,7 @@ bool DesktopView::event(QEvent *e) if (e->type() == QEvent::KeyRelease) { QKeyEvent *ke = static_cast(e); if (m_dashboardShown && ke->key() == Qt::Key_Escape) { - setDashboardShown(false); + static_cast(corona())->setDashboardShown(false); } } else if (e->type() == QEvent::Close) { //prevent ALT+F4 from killing the shell diff --git a/shell/widgetexplorer/plasmoids.knsrc b/shell/widgetexplorer/plasmoids.knsrc index b215e3fb0..c8a6d3098 100644 --- a/shell/widgetexplorer/plasmoids.knsrc +++ b/shell/widgetexplorer/plasmoids.knsrc @@ -1,6 +1,6 @@ [KNewStuff3] ProvidersUrl=http://download.kde.org/ocs/providers.xml -Categories=Plasmoid Script +Categories=Plasmoid Plasma5 StandardResource=tmp InstallationCommand=plasmapkg2 -i %f UninstallCommand=plasmapkg2 -r %f