on xenial help sign in
Fix sidestage applications - they were being ignored in the show-application surface logic
commit4d4c3bd42902c6a3e8f4ea78ab04de5c05716886 authorGerry Boland <gerry.boland@canonical.com> dateMon 26 Aug 2013, 23:01 (13 years ago) parentbdd5cca
1 file changed+7−3
Shell.qml+7−3
Shell.qml+7−3
@@ -161,10 +161,14 @@ FocusScope {
161161 // Whether the underlay is fully covered by opaque UI elements.
162162 property bool fullyCovered: panel.indicators.fullyOpened && shell.width <= panel.indicatorsMenuWidth
163163
164+ readonly property bool applicationRunning: ((mainStage.applications && mainStage.applications.count > 0)
165+ || (sideStage.applications && sideStage.applications.count > 0))
166+
164167 // Whether the user should see the topmost application surface (if there's one at all).
165− property bool applicationSurfaceShouldBeSeen:
166− (mainStage.applications && mainStage.applications.count > 0)
167− && (!stages.fullyHidden && !mainStage.usingScreenshots)
168+ readonly property bool applicationSurfaceShouldBeSeen: applicationRunning && !stages.fullyHidden
169+ && !mainStage.usingScreenshots // but want sideStage animating over app surface
170+
171+
168172
169173 // NB! Application surfaces are stacked behing the shell one. So they can only be seen by the user
170174 // through the translucent parts of the shell surface.