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
wilder-5.14
Marco Martin 12 years ago
parent e9907cef97
commit d2c7ee7aae
  1. 5
      shell/desktopview.cpp
  2. 2
      shell/widgetexplorer/plasmoids.knsrc

@ -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<QKeyEvent *>(e);
if (m_dashboardShown && ke->key() == Qt::Key_Escape) {
setDashboardShown(false);
static_cast<ShellCorona *>(corona())->setDashboardShown(false);
}
} else if (e->type() == QEvent::Close) {
//prevent ALT+F4 from killing the shell

@ -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

Loading…
Cancel
Save