@@ -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;