on xenial help sign in
unbreak panel drop shadow and click-to-focus of maximized windows
commit1925e98178c7c229dbe6f00a300efb365fe78316 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 7 Jan 2016, 13:11 (11 years ago) parentdec4a8c
1 file changed+4
qml/Stages/DesktopStage.qml+4
qml/Stages/DesktopStage.qml+4
@@ -124,16 +124,20 @@ 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
127128
128129 function updateForegroundMaximizedApp() {
129130 var tmp = -1;
131+ var tmpAppId = -1;
130132 for (var i = appRepeater.count - 1; i >= 0; i--) {
131133 var item = appRepeater.itemAt(i);
132134 if (item && item.visuallyMaximized) {
135+ tmpAppId = i;
133136 tmp = Math.max(tmp, item.normalZ);
134137 }
135138 }
136139 foregroundMaximizedAppZ = tmp;
140+ foregroundMaximizedAppIdIndex = tmpAppId;
137141 }
138142
139143 function indexOf(appId) {