on xenial help sign in
fix click to focus
commit784dcad2c57e2736d75e8ff5ab67a13dd79bf824 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateSun 1 Nov 2015, 21:23 (11 years ago) parenteb3696c
1 file changed+6
qml/Stages/DesktopStage.qml+6
qml/Stages/DesktopStage.qml+6
@@ -230,6 +230,12 @@ Rectangle {
230230 property bool animationsEnabled: true
231231 property alias title: decoratedWindow.title
232232
233+ onFocusChanged: {
234+ if (focus && ApplicationManager.focusedApplicationId !== appId) {
235+ ApplicationManager.focusApplication(appId);
236+ }
237+ }
238+
233239 Binding {
234240 target: ApplicationManager.get(index)
235241 property: "requestedState"