on xenial help sign in
fix the panel states
1fdbe3fMichael Zanetti
qml/Stage/Stage.qml+7−16
@@ -231,19 +231,18 @@ AbstractStage {
231 target: PanelState
231 target: PanelState
232 property: "buttonsVisible"
232 property: "buttonsVisible"
233 value: priv.focusedAppDelegate !== null && priv.focusedAppDelegate.maximized // FIXME for Locally integrated menus
233 value: priv.focusedAppDelegate !== null && priv.focusedAppDelegate.maximized // FIXME for Locally integrated menus
234− && spread.state == ""
235 }
234 }
236
235
237 Binding {
236 Binding {
238 target: PanelState
237 target: PanelState
239 property: "title"
238 property: "title"
240 value: {
239 value: {
241−// if (priv.focusedAppDelegate !== null && spread.state == "") {
240+ if (priv.focusedAppDelegate !== null) {
242−// if (priv.focusedAppDelegate.maximized)
241+ if (priv.focusedAppDelegate.maximized)
243−// return priv.focusedAppDelegate.title
242+ return priv.focusedAppDelegate.title
244−// else
243+ else
245−// return priv.focusedAppDelegate.appName
244+ return priv.focusedAppDelegate.appName
246−// }
245+ }
247 return ""
246 return ""
248 }
247 }
249 when: priv.focusedAppDelegate
248 when: priv.focusedAppDelegate
@@ -252,7 +251,7 @@ AbstractStage {
252 Binding {
251 Binding {
253 target: PanelState
252 target: PanelState
254 property: "dropShadow"
253 property: "dropShadow"
255− value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppDelegate !== null
254+ value: priv.focusedAppDelegate && !priv.focusedAppDelegate.maximized && priv.foregroundMaximizedAppDelegate !== null && mode == "windowed"
256 }
255 }
257
256
258 Binding {
257 Binding {
@@ -1067,14 +1066,6 @@ AbstractStage {
1067 }
1066 }
1068 ]
1067 ]
1069
1068
1070−// Binding {
1071−// id: previewBinding
1072−// target: appDelegate
1073−// property: "z"
1074−// value: topLevelSurfaceList.count + 1
1075−// when: index == spread.highlightedIndex
1076−// }
1077−
1078 Binding {
1069 Binding {
1079 target: PanelState
1070 target: PanelState
1080 property: "buttonsAlwaysVisible"
1071 property: "buttonsAlwaysVisible"