remove focus from main item as view loses it

CCBUG:331971
wilder-5.14
Marco Martin 12 years ago
parent 7cb2d06802
commit 400a598325
  1. 5
      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<QObject *>();
if (graphicObject) {
graphicObject->setProperty("focus", false);
}
}
return PlasmaQuick::View::event(e);

Loading…
Cancel
Save