on xenial help sign in
fix panel dropdown shadow when we minimize a previously maximized window
5e6d762Lukáš Tinkl
qml/Stages/DesktopStage.qml+1−11
@@ -163,16 +163,6 @@ AbstractStage {
163 }
163 }
164 }
164 }
165 }
165 }
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− }
176 }
166 }
177
167
178 Connections {
168 Connections {
@@ -209,7 +199,7 @@ AbstractStage {
209 Binding {
199 Binding {
210 target: PanelState
200 target: PanelState
211 property: "dropShadow"
201 property: "dropShadow"
212− value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.isAnyMaximized()
202+ value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppIdIndex !== -1
213 }
203 }
214
204
215 Component.onDestruction: PanelState.buttonsVisible = false;
205 Component.onDestruction: PanelState.buttonsVisible = false;