@@ -756,6 +756,7 @@ AbstractStage {
756756 hasDecoration: root.mode === "windowed"
757757 shadowOpacity: spreadMaths.shadowOpacity
758758 showHighlight: spreadItem.highlightedIndex === index
759+ anchors.topMargin: dragArea.distance
759760 }
760761 PropertyChanges {
761762 target: appDelegate
@@ -767,7 +768,7 @@ AbstractStage {
767768 requestedHeight: decoratedWindow.oldRequestedHeight
768769 visible: spreadMaths.itemVisible
769770 }
770− PropertyChanges { target: inputBlocker; enabled: true }
771+ PropertyChanges { target: dragArea; enabled: true }
771772 PropertyChanges { target: windowInfoItem; opacity: spreadMaths.tileInfoOpacity; visible: spreadMaths.itemVisible }
772773 },
773774 State {
@@ -1118,21 +1119,25 @@ AbstractStage {
11181119 surface: model.surface
11191120 }
11201121
1121− MouseArea {
1122− id: inputBlocker
1122+ DragToCloseArea {
1123+ id: dragArea
11231124 anchors.fill: parent
11241125 enabled: false
1125− onPressed: mouse.accepted = true;
1126+ closeable: model.application.appId !== "unity8-dash"
1127+
11261128 onClicked: {
1127− print("focusing because of inputBlocker click")
11281129 spreadItem.highlightedIndex = index;
1129− priv.goneToSpread = false;
1130+ if (distance == 0) {
1131+ print("focusing because of inputBlocker click")
1132+ priv.goneToSpread = false;
1133+ }
11301134 }
1131− hoverEnabled: true
11321135 onContainsMouseChanged: {
11331136 if (containsMouse) spreadItem.highlightedIndex = index
11341137 }
1138+ onClose: model.surface.close()
11351139 }
1140+
11361141// Rectangle { anchors.fill: parent; color: "blue"; opacity: .4 }
11371142
11381143 WindowInfoItem {