on xenial help sign in
rename internal variable to foregroundMaximizedAppIndex
commit834d65e825550aad66608563dcfb45b8ba03ae6f authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 8 Jan 2016, 14:29 (11 years ago) parent8eac14e
1 file changed+5−5
qml/Stages/DesktopStage.qml+5−5
qml/Stages/DesktopStage.qml+5−5
@@ -124,7 +124,7 @@ AbstractStage {
124124 onFocusedAppDelegateChanged: updateForegroundMaximizedApp();
125125
126126 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
128128
129129 function updateForegroundMaximizedApp() {
130130 var tmp = -1;
@@ -137,7 +137,7 @@ AbstractStage {
137137 }
138138 }
139139 foregroundMaximizedAppZ = tmp;
140− foregroundMaximizedAppIdIndex = tmpAppId;
140+ foregroundMaximizedAppIndex = tmpAppId;
141141 }
142142
143143 function indexOf(appId) {
@@ -180,8 +180,8 @@ AbstractStage {
180180 onMinimize: priv.focusedAppDelegate && priv.focusedAppDelegate.minimize();
181181 onMaximize: priv.focusedAppDelegate // don't restore minimized apps when double clicking the panel
182182 && priv.focusedAppDelegate.restoreFromMaximized();
183− onFocusMaximizedApp: if (priv.foregroundMaximizedAppIdIndex != -1) {
184− ApplicationManager.focusApplication(appRepeater.itemAt(priv.foregroundMaximizedAppIdIndex).appId);
183+ onFocusMaximizedApp: if (priv.foregroundMaximizedAppIndex != -1) {
184+ ApplicationManager.focusApplication(appRepeater.itemAt(priv.foregroundMaximizedAppIndex).appId);
185185 }
186186 }
187187
@@ -210,7 +210,7 @@ AbstractStage {
210210 Binding {
211211 target: PanelState
212212 property: "dropShadow"
213− value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppIdIndex !== -1
213+ value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppIndex !== -1
214214 }
215215
216216 Component.onDestruction: {