on xenial help sign in
provide app name as a fallback to window title
commit4724b62426697376d00efae3748859029877c652 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 16 Sep 2016, 13:25 (10 years ago) parentb1f6d36
1 file changed+4−2
qml/Stage/Spread/Spread.qml+4−2
qml/Stage/Spread/Spread.qml+4−2
@@ -93,8 +93,10 @@ Item {
9393 y: windowTitleTopMargin
9494// //y: priv.spreadTopMargin + priv.contentTopMargin + settings.spreadOffset + settings.titleOffset - height - (priv.contentTopMargin - height) / 4
9595// visible: height < priv.contentTopMargin
96− property var highlightedSurface: root.model ? root.model.surfaceAt(root.highlightedIndex) : null
97− text: root.highlightedIndex >= 0 && highlightedSurface ? highlightedSurface.name : ""
96+ readonly property var highlightedSurface: root.model ? root.model.surfaceAt(root.highlightedIndex) : null
97+ readonly property var highlightedApp: root.model ? root.model.applicationAt(root.highlightedIndex) : null
98+ text: root.highlightedIndex >= 0 && highlightedSurface && highlightedSurface.name != "" ? highlightedSurface.name :
99+ highlightedApp ? highlightedApp.name : ""
98100 fontSize: root.height < units.gu(85) ? 'medium' : 'large'
99101 color: "white"
100102 opacity: root.highlightedIndex >= 0 ? 1 : 0