@@ -36,6 +36,11 @@ AbstractStage {
3636 edgeBarrier.push(amount);
3737 }
3838 }
39+ function closeFocusedDelegate() {
40+ if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
41+ priv.focusedAppDelegate.close();
42+ }
43+ }
3944
4045 // Used by TutorialRight
4146 property bool spreadShown: spread.state == "altTab"
@@ -47,13 +52,6 @@ AbstractStage {
4752
4853 orientationChangesEnabled: true
4954
50− GlobalShortcut {
51− id: closeWindowShortcut
52− shortcut: Qt.AltModifier|Qt.Key_F4
53− onTriggered: { if (priv.focusedAppDelegate) { priv.focusedAppDelegate.close(); } }
54− active: priv.focusedAppDelegate !== null
55− }
56−
5755 GlobalShortcut {
5856 id: showSpreadShortcut
5957 shortcut: Qt.MetaModifier|Qt.Key_W
@@ -205,7 +203,7 @@ AbstractStage {
205203 Binding {
206204 target: PanelState
207205 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
209207 }
210208
211209 Component.onDestruction: {
@@ -337,6 +335,8 @@ AbstractStage {
337335 readonly property var surface: model.surface
338336 readonly property alias resizeArea: resizeArea
339337
338+ readonly property bool isDash: model.application.appId == "unity8-dash"
339+
340340 function claimFocus() {
341341 if (spread.state == "altTab") {
342342 spread.cancel();