@@ -174,6 +174,10 @@ FocusScope {
174174 visible: true
175175 opacity: spreadMaths.tileInfoOpacity
176176 }
177+ PropertyChanges {
178+ target: spreadSelectArea
179+ enabled: true
180+ }
177181 }
178182 ]
179183 transitions: [
@@ -239,6 +243,17 @@ FocusScope {
239243 angle: appDelegate.angle
240244 }
241245 ]
246+
247+ MouseArea {
248+ id: spreadSelectArea
249+ anchors.fill: parent
250+ enabled: false
251+ onClicked: {
252+ print("clicked")
253+ appDelegate.focusWindow()
254+ root.state = ""
255+ }
256+ }
242257 }
243258
244259
@@ -269,7 +284,7 @@ FocusScope {
269284 }
270285 }
271286
272− Flickable {
287+ SpreadFlickable {
273288 id: spreadFlickable
274289 anchors.fill: parent
275290 contentWidth: Math.max(6, ApplicationManager.count) * width / 5
@@ -359,7 +374,10 @@ FocusScope {
359374 Transition {
360375 from: "*"
361376 to: "altTab"
362− PropertyAction { target: spreadFlickable; property: "contentX"; value: 0 }
377+ PropertyAction { target: spreadFlickable; property: "contentX";
378+ value: ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 3, 1));
379+
380+ }
363381 PropertyAnimation { property: "opacity" }
364382 },
365383 Transition {
@@ -369,4 +387,19 @@ FocusScope {
369387 }
370388
371389 ]
390+
391+ MouseArea {
392+ anchors {
393+ top: parent.top
394+ right: parent.right
395+ bottom: parent.bottom
396+ }
397+ width: 1 // yes, we want 1 pixel, regardless of the scaling
398+ hoverEnabled: true
399+ onContainsMouseChanged: {
400+ if (containsMouse) {
401+ root.state = "altTab"
402+ }
403+ }
404+ }
372405}