From 400a598325f79a984a13d7cbf2630b3e50b13af7 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 22 Apr 2014 19:14:00 +0200 Subject: [PATCH] remove focus from main item as view loses it CCBUG:331971 --- shell/desktopview.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/desktopview.cpp b/shell/desktopview.cpp index 25fa19fb9..d0e427300 100644 --- a/shell/desktopview.cpp +++ b/shell/desktopview.cpp @@ -144,6 +144,11 @@ bool DesktopView::event(QEvent *e) //prevent ALT+F4 from killing the shell e->ignore(); return true; + } else if (e->type() == QEvent::FocusOut) { + QObject *graphicObject = containment()->property("_plasma_graphicObject").value(); + if (graphicObject) { + graphicObject->setProperty("focus", false); + } } return PlasmaQuick::View::event(e);