@@ -36,6 +36,11 @@ AbstractStage {
36 edgeBarrier.push(amount);
36 edgeBarrier.push(amount);
39+ function closeFocusedDelegate() {
40+ if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
41+ priv.focusedAppDelegate.close();
40 // Used by TutorialRight
45 // Used by TutorialRight
41 property bool spreadShown: spread.state == "altTab"
46 property bool spreadShown: spread.state == "altTab"
@@ -47,13 +52,6 @@ AbstractStage {
48 orientationChangesEnabled: true
53 orientationChangesEnabled: true
51− id: closeWindowShortcut
52− shortcut: Qt.AltModifier|Qt.Key_F4
53− onTriggered: { if (priv.focusedAppDelegate) { priv.focusedAppDelegate.close(); } }
54− active: priv.focusedAppDelegate !== null
57 GlobalShortcut {
55 GlobalShortcut {
58 id: showSpreadShortcut
56 id: showSpreadShortcut
59 shortcut: Qt.MetaModifier|Qt.Key_W
57 shortcut: Qt.MetaModifier|Qt.Key_W
@@ -205,7 +203,7 @@ AbstractStage {
205 Binding {
203 Binding {
206 target: PanelState
204 target: PanelState
207 property: "closeButtonShown"
205 property: "closeButtonShown"
208− value: priv.focusedAppDelegate && priv.focusedAppDelegate.maximized && priv.focusedAppDelegate.application.appId !== "unity8-dash"
206+ value: priv.focusedAppDelegate && priv.focusedAppDelegate.maximized && !priv.focusedAppDelegate.isDash
211 Component.onDestruction: {
209 Component.onDestruction: {
@@ -337,6 +335,8 @@ AbstractStage {
337 readonly property var surface: model.surface
335 readonly property var surface: model.surface
338 readonly property alias resizeArea: resizeArea
336 readonly property alias resizeArea: resizeArea
338+ readonly property bool isDash: model.application.appId == "unity8-dash"
340 function claimFocus() {
340 function claimFocus() {
341 if (spread.state == "altTab") {
341 if (spread.state == "altTab") {
342 spread.cancel();
342 spread.cancel();