alt+f4 shouldn't work on the dashboard

BUG:332810
This commit is contained in:
Marco Martin 2014-03-31 16:44:45 +02:00
parent 9def2991df
commit 8c54e053a1

View File

@ -41,11 +41,11 @@ DesktopView::DesktopView(ShellCorona *corona, QScreen *screen)
setScreen(screen);
engine()->rootContext()->setContextProperty("desktop", this);
setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));
}
DesktopView::~DesktopView()
{
}
bool DesktopView::stayBehind() const
@ -99,6 +99,7 @@ void DesktopView::setDashboardShown(bool shown)
KWindowSystem::setType(winId(), NET::Normal);
KWindowSystem::clearState(winId(), NET::SkipTaskbar|NET::KeepBelow);
}
setFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint);
raise();
KWindowSystem::raiseWindow(winId());
KWindowSystem::forceActiveWindow(winId());