From 8c54e053a1e67ee482968943c005675a744c45b0 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 31 Mar 2014 16:44:45 +0200 Subject: [PATCH] alt+f4 shouldn't work on the dashboard BUG:332810 --- src/shell/desktopview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell/desktopview.cpp b/src/shell/desktopview.cpp index 19491696c..fd2811469 100644 --- a/src/shell/desktopview.cpp +++ b/src/shell/desktopview.cpp @@ -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());