on xenial help sign in
fix panel dropdown shadow when we minimize a previously maximized window
commit5e6d762963aaddd40e6d97477240072f6c8671c0 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 6 Nov 2015, 20:58 (11 years ago) parent3f8fd1c
1 file changed+1−11
qml/Stages/DesktopStage.qml+1−11
qml/Stages/DesktopStage.qml+1−11
@@ -163,16 +163,6 @@ AbstractStage {
163163 }
164164 }
165165 }
166−
167− function isAnyMaximized() {
168− for (var i = 0; i < appRepeater.count; i++) {
169− var appDelegate = appRepeater.itemAt(i);
170− if (appDelegate && appDelegate.maximized) {
171− return true;
172− }
173− }
174− return false;
175− }
176166 }
177167
178168 Connections {
@@ -209,7 +199,7 @@ AbstractStage {
209199 Binding {
210200 target: PanelState
211201 property: "dropShadow"
212− value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.isAnyMaximized()
202+ value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppIdIndex !== -1
213203 }
214204
215205 Component.onDestruction: PanelState.buttonsVisible = false;