@@ -178,10 +178,18 @@ FocusScope {
178 height: parent.height
178 height: parent.height
179 color: "khaki"
179 color: "khaki"
181+ visible: !fullyHidden
181 x: shown ? launcher.progress : stagesDragArea.progress
183 x: shown ? launcher.progress : stagesDragArea.progress
182 //Behavior on x { SmoothedAnimation { velocity: 600; duration: UbuntuAnimation.FastDuration } }
184 //Behavior on x { SmoothedAnimation { velocity: 600; duration: UbuntuAnimation.FastDuration } }
184 property bool shown: false
186 property bool shown: false
188+ if (!shown && ApplicationManager.focusedApplicationId) {
189+ ApplicationManager.updateScreenshot(ApplicationManager.focusedApplicationId);
190+ ApplicationManager.unfocusCurrentApplication();
186 // Avoid a silent "divide by zero -> NaN" situation during init as shell.width will be
194 // Avoid a silent "divide by zero -> NaN" situation during init as shell.width will be
187 // zero. That breaks the property binding and the function won't be reevaluated once
195 // zero. That breaks the property binding and the function won't be reevaluated once
@@ -192,16 +200,25 @@ FocusScope {
192 property bool fullyHidden: x == width
200 property bool fullyHidden: x == width
194 property bool empty: SurfaceManager.count == 0
202 property bool empty: SurfaceManager.count == 0
196 function show() {
209 function show() {
197 shown = true;
210 shown = true;
198−// panel.indicators.hide();
201 function hide() {
213 function hide() {
202 shown = false;
214 shown = false;
218+ target: ApplicationManager
219+ onFocusRequested: { stages.show(); }
206 id: applicationsDisplayLoader
223 id: applicationsDisplayLoader
207 anchors.fill: parent
224 anchors.fill: parent