@@ -68,7 +68,7 @@ FocusScope {
68 spreadDelegate: root
68 spreadDelegate: root
69 background: background
69 background: background
70 window: appWindowWithShadow
70 window: appWindowWithShadow
71− screenshot: appWindowScreenshot
71+ screenshot: appWindowScreenshotWithShadow
74 QtObject {
74 QtObject {
@@ -110,6 +110,8 @@ FocusScope {
110 property real transformOriginX
110 property real transformOriginX
111 property real transformOriginY
111 property real transformOriginY
113+ property var window: appWindow
113 transform: Rotation {
115 transform: Rotation {
114 origin.x: appWindowWithShadow.transformOriginX
116 origin.x: appWindowWithShadow.transformOriginX
115 origin.y: appWindowWithShadow.transformOriginY
117 origin.y: appWindowWithShadow.transformOriginY
@@ -267,9 +269,10 @@ FocusScope {
271− id: appWindowScreenshot
273+ // mimics appWindowWithShadow. Do the positioning of screenshots of non-fullscreen
272− source: ""
274+ // app windows
275+ id: appWindowScreenshotWithShadow
273 visible: false
276 visible: false
275 property real transformRotationAngle: 0
278 property real transformRotationAngle: 0
@@ -277,21 +280,33 @@ FocusScope {
277 property real transformOriginY
280 property real transformOriginY
279 transform: Rotation {
282 transform: Rotation {
280− origin.x: appWindowScreenshot.transformOriginX
283+ origin.x: appWindowScreenshotWithShadow.transformOriginX
281− origin.y: appWindowScreenshot.transformOriginY
284+ origin.y: appWindowScreenshotWithShadow.transformOriginY
282 axis { x: 0; y: 0; z: 1 }
285 axis { x: 0; y: 0; z: 1 }
283− angle: appWindowScreenshot.transformRotationAngle
286+ angle: appWindowScreenshotWithShadow.transformRotationAngle
289+ property var window: appWindowScreenshot
286 function take() {
291 function take() {
287 // Format: "image://application/$APP_ID/$CURRENT_TIME_MS"
292 // Format: "image://application/$APP_ID/$CURRENT_TIME_MS"
288 // eg: "image://application/calculator-app/123456"
293 // eg: "image://application/calculator-app/123456"
289 var timeMs = new Date().getTime();
294 var timeMs = new Date().getTime();
290− source = "image://application/" + root.application.appId + "/" + timeMs;
295+ appWindowScreenshot.source = "image://application/" + root.application.appId + "/" + timeMs;
297+ function discard() {
298+ appWindowScreenshot.source = "";
302+ id: appWindowScreenshot
305+ anchors.fill: parent
293− sourceSize.width: width
307+ sourceSize.width: width
294− sourceSize.height: height
308+ sourceSize.height: height
297 DraggingArea {
312 DraggingArea {