@@ -22,6 +22,7 @@ import Ubuntu.Components 1.1
22import Unity.Application 0.1
22import Unity.Application 0.1
23import "../Components/PanelState"
23import "../Components/PanelState"
24import Utils 0.1
24import Utils 0.1
25+import Ubuntu.Gestures 0.1
26FocusScope {
27FocusScope {
@@ -37,8 +38,10 @@ FocusScope {
37 if (altTabPressed) {
38 if (altTabPressed) {
38 appRepeater.highlightedIndex = Math.min(ApplicationManager.count - 1, 1);
39 appRepeater.highlightedIndex = Math.min(ApplicationManager.count - 1, 1);
41+ if (root.state == "altTab") {
40− print("focusing app", appRepeater.highlightedIndex)
42+ print("focusing app", appRepeater.highlightedIndex)
41− ApplicationManager.requestFocusApplication(ApplicationManager.get(appRepeater.highlightedIndex).appId)
43+ ApplicationManager.requestFocusApplication(ApplicationManager.get(appRepeater.highlightedIndex).appId)
@@ -181,6 +184,10 @@ FocusScope {
181 target: spreadSelectArea
184 target: spreadSelectArea
182 enabled: true
185 enabled: true
188+ target: windowMoveResizeArea
186 transitions: [
193 transitions: [
@@ -205,6 +212,7 @@ FocusScope {
207 WindowMoveResizeArea {
214 WindowMoveResizeArea {
215+ id: windowMoveResizeArea
208 target: appDelegate
216 target: appDelegate
209 minWidth: appDelegate.minWidth
217 minWidth: appDelegate.minWidth
210 minHeight: appDelegate.minHeight
218 minHeight: appDelegate.minHeight
@@ -287,13 +295,16 @@ FocusScope {
290− SpreadFlickable {
298+ FloatingFlickable {
291 id: spreadFlickable
299 id: spreadFlickable
292 anchors.fill: parent
300 anchors.fill: parent
293 contentWidth: Math.max(6, ApplicationManager.count) * Math.min(height / 4, width / 5)
301 contentWidth: Math.max(6, ApplicationManager.count) * Math.min(height / 4, width / 5)
294− visible: false
303+ //visible: false
295 //boundsBehavior: Flickable.StopAtBounds
304 //boundsBehavior: Flickable.StopAtBounds
306+ onContentXChanged: print("contentXChanged", contentX)
297 function ensureVisible(index) {
308 function ensureVisible(index) {