@@ -38,18 +38,13 @@ Item {
3838
3939 readonly property int overlayWidth: priv.overlayOverride ? 0 : priv.sideStageWidth
4040
41− onPaintingChanged: print(":::::::::::::::::::::::::::::::: painting changed:", painting, "overlayMode:", overlayMode)
42− onOverlayModeChanged: print(";;;;;;;;;;;;;;;;;;;;;;;;;; overlayModeChanged:", overlayWidth)
43−
4441 onShownChanged: {
45− print("___________________________shown", shown)
4642 if (!shown) {
4743 priv.mainStageAppId = "";
4844 }
4945 }
5046
5147 onMovingChanged: {
52− print("moving", moving, priv.haveMainStageApp, priv.haveSideStageApp)
5348 if (moving) {
5449 if (!priv.mainStageAppId && !priv.sideStageAppId) {
5550 // Pulling in from the right, make the last used (topmost) app visible
@@ -122,26 +117,21 @@ Item {
122117 }
123118 }
124119 }
125− print("focused app changed", focusedApplicationId, mainStageAppId, sideStageAppId, sideStageImage.shown, priv.startingAppId)
126120 }
127121
128122 onMainStageScreenshotChanged: {
129− print("------------------------------------------0")
130123 waitingForMainScreenshot = false;
131124 }
132125
133126 onSideStageScreenshotChanged: {
134− print("------------------------------------------1")
135127 waitingForSideScreenshot = false;
136128 }
137129
138130 onFocusedScreenshotChanged: {
139− print("##########################################", root.overlayMode)
140131 waitingForSideScreenshot = false;
141132 }
142133
143134 onWaitingForScreenshotsChanged: {
144− print("********************++ waitingForScreenshotsChanged:", waitingForScreenshots);
145135 if (waitingForScreenshots) {
146136 return;
147137 }
@@ -154,16 +144,13 @@ Item {
154144 if (sideStageAppId && focusedApplicationId == sideStageAppId) {
155145 sideStageImage.application = sideStageApp;
156146 sideStageImage.x = root.width - sideStageImage.width
157− print("setting side stage screenshot visiblr")
158147 sideStageImage.visible = true;
159148 }
160149 }
161150 if (sideStageHandleMouseArea.pressed) {
162151 if (sideStageAppId) {
163− print("setting side stage screenshot to", sideStageAppId)
164152 sideStageImage.application = sideStageApp;
165153 sideStageImage.x = root.width - sideStageImage.width
166− print("setting side stage screenshot visiblr")
167154 sideStageImage.visible = true;
168155 }
169156 if (mainStageAppId) {
@@ -174,13 +161,10 @@ Item {
174161 }
175162
176163 function requestNewScreenshot(stage) {
177− print("** requestNewScreenshot called for stage", stage, mainStageAppId, sideStageAppId)
178164 if (stage == ApplicationInfoInterface.MainStage && mainStageAppId) {
179− print("requesting new MainStage screenshot")
180165 waitingForMainScreenshot = true;
181166 ApplicationManager.updateScreenshot(mainStageAppId);
182167 } else if (stage == ApplicationInfoInterface.SideStage && sideStageAppId) {
183− print("requesting new SideStage screenshot")
184168 waitingForSideScreenshot = true;
185169 ApplicationManager.updateScreenshot(sideStageAppId);
186170 }
@@ -217,8 +201,6 @@ Item {
217201 }
218202
219203 onFocusRequested: {
220− print("focus requested by", appId)
221−
222204 var application = ApplicationManager.findApplication(appId)
223205 if (application.stage == ApplicationInfoInterface.SideStage) {
224206 if (!root.shown) {
@@ -226,7 +208,6 @@ Item {
226208 mainStageImage.application = null
227209 }
228210 if (sideStageImage.shown) {
229− print("switching to:", appId)
230211 sideStageImage.switchTo(application)
231212 mainStageImage.visible = true;
232213 ApplicationManager.focusApplication(appId)
@@ -235,16 +216,12 @@ Item {
235216 sideStageImage.snapToApp(application)
236217 }
237218 } else if (application.stage == ApplicationInfoInterface.MainStage) {
238− print("should focus a main stage app")
239219 if (root.shown) {
240− print("root is already shown")
241220 priv.mainStageAppId = application.appId;
242221 mainStageImage.switchTo(application)
243222 if (sideStageImage.shown) {
244− print("hiding side stage!")
245223 sideStageImage.snapTo(root.width)
246224 } else {
247− print("focusing app", appId)
248225 ApplicationManager.focusApplication(appId)
249226 }
250227 } else {
@@ -301,7 +278,6 @@ Item {
301278 property var dragPoints: new Array()
302279
303280 onPressed: {
304− print("sidestagehandle pressed. shown:", shown, "sidestageAppId:", priv.sideStageAppId)
305281 priv.requestNewScreenshot(ApplicationInfoInterface.SideStage)
306282 if (priv.mainStageAppId) {
307283 priv.requestNewScreenshot(ApplicationInfoInterface.MainStage)
@@ -310,7 +286,6 @@ Item {
310286
311287 onMouseXChanged: {
312288 dragPoints.push(mouseX)
313− print("mouseX changed. waiting for screenshots", priv.waitingForScreenshots)
314289// if (priv.waitingForScreenshots) {
315290// return;
316291// }
@@ -338,7 +313,6 @@ Item {
338313 if (oneWayFlick || distance > sideStageImage.width / 2) {
339314 sideStageImage.snapTo(root.width)
340315 } else {
341− print("should snap to:", priv.sideStageAppId)
342316 sideStageImage.snapToApp(priv.sideStageApp)
343317 }
344318 }
@@ -362,7 +336,6 @@ Item {
362336 }
363337
364338 function snapTo(targetX) {
365−// print("snapping to... app:", sideStageImage.application.appId)
366339 sideStageSnapAnimation.targetX = targetX
367340 sideStageImage.visible = true;
368341 if (priv.mainStageAppId) {
@@ -383,8 +356,6 @@ Item {
383356 property int targetX: root.width
384357 property string snapToId
385358
386− onRunningChanged: print("sideStageSnapAnimation running changed:", running, sideStageImage.visible, mainStageImage.visible, root.painting, mainStageImage.visible || sideStageImage.visible || sideStageSnapAnimation.running)
387−
388359 UbuntuNumberAnimation { target: sideStageImage; property: "x"; to: sideStageSnapAnimation.targetX; duration: UbuntuAnimation.SlowDuration }
389360 ScriptAction {
390361 script: {
@@ -392,15 +363,12 @@ Item {
392363 if (priv.mainStageAppId) {
393364 ApplicationManager.focusApplication(priv.mainStageAppId)
394365 } else {
395− print("unfocusing current app")
396366 priv.overlayOverride = true;
397367 ApplicationManager.unfocusCurrentApplication();
398368 }
399369 sideStageImage.shown = false;
400370 }
401− print("snapped sidestage to app", sideStageSnapAnimation.snapToId)
402371 if (sideStageSnapAnimation.snapToId) {
403− print("focusing id", sideStageSnapAnimation.snapToId)
404372 ApplicationManager.focusApplication(sideStageSnapAnimation.snapToId)
405373 sideStageSnapAnimation.snapToId = "";
406374 sideStageImage.shown = true;
@@ -408,7 +376,6 @@ Item {
408376 }
409377 sideStageImage.visible = false;
410378 mainStageImage.visible = false;
411− print("snapped sidestage", root.overlayMode, root.painting)
412379 }
413380 }
414381 }