@@ -170,6 +170,8 @@ FocusScope {
170 property int itemScaleOriginX: 0
170 property int itemScaleOriginX: 0
171 property int itemScaleOriginY: 0
171 property int itemScaleOriginY: 0
173+ readonly property string windowTitle: clippedSpreadDelegate.window.title
173 Behavior on x {
175 Behavior on x {
174 id: closeBehavior
176 id: closeBehavior
175 enabled: spreadRepeater.closingIndex >= 0
177 enabled: spreadRepeater.closingIndex >= 0
@@ -326,9 +328,7 @@ FocusScope {
327 Layout.fillWidth: true
329 Layout.fillWidth: true
328 Layout.preferredHeight: units.gu(6)
330 Layout.preferredHeight: units.gu(6)
329− property string surfaceName: model.surface ? model.surface.name : ""
331+ text: model.application ? model.application.name : spreadDelegate.windowTitle
330− property string applicationName: model.application ? model.application.name : ""
331− text: surfaceName ? surfaceName : applicationName
332 wrapMode: Text.WordWrap
332 wrapMode: Text.WordWrap
333 elide: Text.ElideRight
333 elide: Text.ElideRight
334 maximumLineCount: 2
334 maximumLineCount: 2
@@ -527,7 +527,7 @@ FocusScope {
528 id: currentSelectedLabel
528 id: currentSelectedLabel
529 anchors { bottom: parent.bottom; bottomMargin: root.height * 0.625; horizontalCenter: parent.horizontalCenter }
529 anchors { bottom: parent.bottom; bottomMargin: root.height * 0.625; horizontalCenter: parent.horizontalCenter }
530− text: spreadRepeater.highlightedIndex >= 0 ? topLevelSurfaceList.surfaceAt(spreadRepeater.highlightedIndex).name : ""
530+ text: spreadRepeater.highlightedIndex >= 0 ? spreadRepeater.itemAt(spreadRepeater.highlightedIndex).windowTitle: ""
531 visible: false
531 visible: false
532 fontSize: "large"
532 fontSize: "large"