@@ -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