@@ -174,6 +174,10 @@ FocusScope {
174 visible: true
174 visible: true
175 opacity: spreadMaths.tileInfoOpacity
175 opacity: spreadMaths.tileInfoOpacity
178+ target: spreadSelectArea
179 transitions: [
183 transitions: [
@@ -239,6 +243,17 @@ FocusScope {
239 angle: appDelegate.angle
243 angle: appDelegate.angle
248+ id: spreadSelectArea
249+ anchors.fill: parent
253+ appDelegate.focusWindow()
@@ -269,7 +284,7 @@ FocusScope {
272− Flickable {
287+ SpreadFlickable {
273 id: spreadFlickable
288 id: spreadFlickable
274 anchors.fill: parent
289 anchors.fill: parent
275 contentWidth: Math.max(6, ApplicationManager.count) * width / 5
290 contentWidth: Math.max(6, ApplicationManager.count) * width / 5
@@ -359,7 +374,10 @@ FocusScope {
359 Transition {
374 Transition {
360 from: "*"
375 from: "*"
361 to: "altTab"
376 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));
363 PropertyAnimation { property: "opacity" }
381 PropertyAnimation { property: "opacity" }
365 Transition {
383 Transition {
@@ -369,4 +387,19 @@ FocusScope {
395+ bottom: parent.bottom
397+ width: 1 // yes, we want 1 pixel, regardless of the scaling
399+ onContainsMouseChanged: {
400+ if (containsMouse) {
401+ root.state = "altTab"