on xenial help sign in
rename internal variable to foregroundMaximizedAppIndex
834d65eLukáš Tinkl
qml/Stages/DesktopStage.qml+5−5
@@ -124,7 +124,7 @@ AbstractStage {
124 onFocusedAppDelegateChanged: updateForegroundMaximizedApp();
124 onFocusedAppDelegateChanged: updateForegroundMaximizedApp();
125
125
126 property int foregroundMaximizedAppZ: -1
126 property int foregroundMaximizedAppZ: -1
127− property int foregroundMaximizedAppIdIndex: -1 // for stuff like drop shadow and focusing maximized app by clicking panel
127+ property int foregroundMaximizedAppIndex: -1 // for stuff like drop shadow and focusing maximized app by clicking panel
128
128
129 function updateForegroundMaximizedApp() {
129 function updateForegroundMaximizedApp() {
130 var tmp = -1;
130 var tmp = -1;
@@ -137,7 +137,7 @@ AbstractStage {
137 }
137 }
138 }
138 }
139 foregroundMaximizedAppZ = tmp;
139 foregroundMaximizedAppZ = tmp;
140− foregroundMaximizedAppIdIndex = tmpAppId;
140+ foregroundMaximizedAppIndex = tmpAppId;
141 }
141 }
142
142
143 function indexOf(appId) {
143 function indexOf(appId) {
@@ -180,8 +180,8 @@ AbstractStage {
180 onMinimize: priv.focusedAppDelegate && priv.focusedAppDelegate.minimize();
180 onMinimize: priv.focusedAppDelegate && priv.focusedAppDelegate.minimize();
181 onMaximize: priv.focusedAppDelegate // don't restore minimized apps when double clicking the panel
181 onMaximize: priv.focusedAppDelegate // don't restore minimized apps when double clicking the panel
182 && priv.focusedAppDelegate.restoreFromMaximized();
182 && priv.focusedAppDelegate.restoreFromMaximized();
183− onFocusMaximizedApp: if (priv.foregroundMaximizedAppIdIndex != -1) {
183+ onFocusMaximizedApp: if (priv.foregroundMaximizedAppIndex != -1) {
184− ApplicationManager.focusApplication(appRepeater.itemAt(priv.foregroundMaximizedAppIdIndex).appId);
184+ ApplicationManager.focusApplication(appRepeater.itemAt(priv.foregroundMaximizedAppIndex).appId);
185 }
185 }
186 }
186 }
187
187
@@ -210,7 +210,7 @@ AbstractStage {
210 Binding {
210 Binding {
211 target: PanelState
211 target: PanelState
212 property: "dropShadow"
212 property: "dropShadow"
213− value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppIdIndex !== -1
213+ value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppIndex !== -1
214 }
214 }
215
215
216 Component.onDestruction: {
216 Component.onDestruction: {