@@ -273,6 +273,7 @@ Rectangle {
273 MouseArea {
273 MouseArea {
274 id: spreadSelectArea
274 id: spreadSelectArea
275 anchors.fill: parent
275 anchors.fill: parent
276+ anchors.margins: -units.gu(2)
276 enabled: false
277 enabled: false
277 hoverEnabled: enabled
278 hoverEnabled: enabled
@@ -306,7 +307,7 @@ Rectangle {
306 id: closeImage
307 id: closeImage
307 anchors { left: parent.left; top: parent.top; leftMargin: -height / 2; topMargin: -height / 2 + spreadMaths.closeIconOffset }
308 anchors { left: parent.left; top: parent.top; leftMargin: -height / 2; topMargin: -height / 2 + spreadMaths.closeIconOffset }
308 source: "graphics/window-close.svg"
309 source: "graphics/window-close.svg"
309− visible: spreadSelectArea.upperThirdContainsMouse || closeMouseArea.containsMouse
310+ visible: spreadSelectArea.upperThirdContainsMouse
310 height: units.gu(1.5)
311 height: units.gu(1.5)
311 width: height
312 width: height
312 sourceSize.width: width
313 sourceSize.width: width
@@ -317,7 +318,7 @@ Rectangle {
317 id: closeMouseArea
318 id: closeMouseArea
318 anchors.fill: closeImage
319 anchors.fill: closeImage
319 anchors.margins: -units.gu(1)
320 anchors.margins: -units.gu(1)
320− hoverEnabled: true
321+ enabled: spreadSelectArea.enabled
321 onClicked: ApplicationManager.stopApplication(model.appId)
322 onClicked: ApplicationManager.stopApplication(model.appId)