on xenial help sign in
fixup window title and controls in panel

do not confuse it with pointer menu, esp. in staged mode

commitfe9d37e98bce30bda054a0e76aa122f524c2458f authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 15 Mar 2017, 20:03 (10 years ago) parent593d500
2 files changed+7−7
qml/Panel/Panel.qml+6−6 qml/Stage/Stage.qml+1−1
qml/Panel/Panel.qml+6−6
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2013-2016 Canonical, Ltd.
2+ * Copyright (C) 2013-2017 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -84,15 +84,15 @@ Item {
8484 property bool showWindowDecorationControls: (revealControls && PanelState.decorationsVisible) ||
8585 PanelState.decorationsAlwaysVisible
8686
87− property bool showPointerMenu: revealControls &&
87+ property bool showPointerMenu: revealControls && enablePointerMenu &&
8888 (PanelState.decorationsVisible || mode == "staged")
8989
90− property bool enablePointerMenu: revealControls &&
91− applicationMenus.available &&
90+ property bool enablePointerMenu: applicationMenus.available &&
9291 applicationMenus.model
9392
9493 property bool showTouchMenu: !greeterShown &&
95− !showPointerMenu
94+ !showPointerMenu &&
95+ !showWindowDecorationControls
9696
9797 property bool enableTouchMenus: showTouchMenu &&
9898 applicationMenus.available &&
@@ -205,7 +205,7 @@ Item {
205205 opacity: d.showPointerMenu ? 1 : 0
206206 visible: opacity != 0
207207 Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }
208− active: __applicationMenus.model
208+ active: d.showPointerMenu && !callHint.visible
209209
210210 width: parent.width - windowControlButtons.width - units.gu(2) - __indicators.barWidth
211211
qml/Stage/Stage.qml+1−1
@@ -361,7 +361,7 @@ FocusScope {
361361 Binding {
362362 target: PanelState
363363 property: "decorationsVisible"
364− value: priv.focusedAppDelegate !== null && priv.focusedAppDelegate.maximized // FIXME for Locally integrated menus
364+ value: mode == "windowed" && priv.focusedAppDelegate && priv.focusedAppDelegate.maximized
365365 }
366366
367367 Binding {