on xenial help sign in
drop usage of topmostApplication because its technically wrong and will be removed from qtmir
commite5118751065cd65a658a63d47623c505f100bca8 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 17 Jul 2014, 15:42 (12 years ago) parent4bd2c73
1 file changed+4−4
qml/Shell.qml+4−4
qml/Shell.qml+4−4
@@ -175,8 +175,8 @@ FocusScope {
175175 property bool shown: false
176176 onShownChanged: {
177177 if (shown) {
178− if (ApplicationManager.topmostApplication) {
179− ApplicationManager.focusApplication(ApplicationManager.topmostApplication.appId);
178+ if (ApplicationManager.count > 0) {
179+ ApplicationManager.focusApplication(ApplicationManager.get(0).appId);
180180 }
181181 } else {
182182 if (ApplicationManager.focusedApplicationId) {
@@ -477,8 +477,8 @@ FocusScope {
477477 }
478478
479479 property bool topmostApplicationIsFullscreen:
480− ApplicationManager.topmostApplication &&
481− ApplicationManager.topmostApplication.fullscreen
480+ ApplicationManager.focusedApplicationId &&
481+ ApplicationManager.findApplication(ApplicationManager.focusedApplicationId).fullscreen
482482
483483 fullscreenMode: stages.roughlyFullyShown && topmostApplicationIsFullscreen
484484 && !greeter.shown && !lockscreen.shown