on xenial help sign in
use floatingflickable
ba4ffbaMichael Zanetti
qml/Stages/DecoratedWindow.qml+1
@@ -52,6 +52,7 @@ FocusScope {
52 PropertyChanges {
52 PropertyChanges {
53 target: applicationWindow
53 target: applicationWindow
54 itemScale: Math.max(root.width / root.windowWidth, root.height / root.windowHeight)
54 itemScale: Math.max(root.width / root.windowWidth, root.height / root.windowHeight)
55+ interactive: false
55 }
56 }
56 PropertyChanges {
57 PropertyChanges {
57 target: clipper
58 target: clipper
qml/Stages/DesktopStage.qml+15−4
@@ -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
25
26
26FocusScope {
27FocusScope {
27 id: root
28 id: root
@@ -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);
39 } else {
40 } else {
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)
44+ }
42 }
45 }
43 }
46 }
44
47
@@ -181,6 +184,10 @@ FocusScope {
181 target: spreadSelectArea
184 target: spreadSelectArea
182 enabled: true
185 enabled: true
183 }
186 }
187+ PropertyChanges {
188+ target: windowMoveResizeArea
189+ enabled: false
190+ }
184 }
191 }
185 ]
192 ]
186 transitions: [
193 transitions: [
@@ -205,6 +212,7 @@ FocusScope {
205 }
212 }
206
213
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 {
287 }
295 }
288 }
296 }
289
297
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)
302+
294− visible: false
303+ //visible: false
295 //boundsBehavior: Flickable.StopAtBounds
304 //boundsBehavior: Flickable.StopAtBounds
296
305
306+ onContentXChanged: print("contentXChanged", contentX)
307+
297 function ensureVisible(index) {
308 function ensureVisible(index) {
298
309
299 }
310 }