on xenial help sign in
apply the correct keymap also for prompt surfaces
commit546c8e71817c5703affaedf0f630613e1195d707 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 8 Aug 2016, 13:18 (10 years ago) parent166ff93
6 files changed+7−3
qml/Stages/ApplicationWindow.qml+1 qml/Stages/DecoratedWindow.qml+1 qml/Stages/DesktopStage.qml+2−1 qml/Stages/PhoneStage.qml+1−1 qml/Stages/SpreadDelegate.qml+1 qml/Stages/TabletStage.qml+1−1
qml/Stages/ApplicationWindow.qml+1
@@ -27,6 +27,7 @@ FocusScope {
2727 property alias interactive: surfaceContainer.interactive
2828 property bool orientationChangesEnabled: d.supportsSurfaceResize ? d.surfaceOldEnoughToBeResized : true
2929 readonly property string title: surface && surface.name !== "" ? surface.name : d.name
30+ readonly property QtObject focusedSurface: d.focusedSurface.surface
3031
3132 // overridable from outside
3233 property bool fullscreen: {
qml/Stages/DecoratedWindow.qml+1
@@ -26,6 +26,7 @@ FocusScope {
2626
2727 property alias application: applicationWindow.application
2828 property alias surface: applicationWindow.surface
29+ readonly property alias focusedSurface: applicationWindow.focusedSurface
2930 property alias active: decoration.active
3031 readonly property alias title: applicationWindow.title
3132 property alias fullscreen: applicationWindow.fullscreen
qml/Stages/DesktopStage.qml+2−1
@@ -230,7 +230,7 @@ AbstractStage {
230230 Binding {
231231 target: MirFocusController
232232 property: "focusedSurface"
233− value: priv.focusedAppDelegate ? priv.focusedAppDelegate.surface : null
233+ value: priv.focusedAppDelegate ? priv.focusedAppDelegate.focusedSurface : null
234234 when: !appRepeater.startingUp && root.parent
235235 }
236236
@@ -334,6 +334,7 @@ AbstractStage {
334334
335335 readonly property var surface: model.surface
336336 readonly property alias resizeArea: resizeArea
337+ readonly property alias focusedSurface: decoratedWindow.focusedSurface
337338
338339 readonly property bool isDash: model.application.appId == "unity8-dash"
339340
qml/Stages/PhoneStage.qml+1−1
@@ -244,7 +244,7 @@ AbstractStage {
244244 Binding {
245245 target: MirFocusController
246246 property: "focusedSurface"
247− value: priv.focusedAppDelegate ? priv.focusedAppDelegate.surface : null
247+ value: priv.focusedAppDelegate ? priv.focusedAppDelegate.focusedSurface : null
248248 when: root.parent && !spreadRepeater.startingUp
249249 }
250250
qml/Stages/SpreadDelegate.qml+1
@@ -37,6 +37,7 @@ FocusScope {
3737 | Qt.LandscapeOrientation
3838 | Qt.InvertedPortraitOrientation
3939 | Qt.InvertedLandscapeOrientation
40+ readonly property alias focusedSurface: appWindow.focusedSurface
4041
4142 // to be set from outside
4243 property bool interactive: true
qml/Stages/TabletStage.qml+1−1
@@ -307,7 +307,7 @@ AbstractStage {
307307 Binding {
308308 target: MirFocusController
309309 property: "focusedSurface"
310− value: priv.focusedAppDelegate ? priv.focusedAppDelegate.surface : null
310+ value: priv.focusedAppDelegate ? priv.focusedAppDelegate.focusedSurface : null
311311 when: root.parent && !spreadRepeater.startingUp
312312 }
313313