@@ -19,6 +19,7 @@ import Ubuntu.Components 1.3
19import Unity.Application 0.1
19import Unity.Application 0.1
20import "../Components"
20import "../Components"
21import "../Components/PanelState"
21import "../Components/PanelState"
22+import "../Components/TouchControlsState"
22import ".."
23import ".."
@@ -109,7 +110,7 @@ Item {
109 height: indicators.minimizedPanelHeight
110 height: indicators.minimizedPanelHeight
110 hoverEnabled: true
111 hoverEnabled: true
111 onClicked: callHint.visible ? callHint.showLiveCall() : PanelState.focusMaximizedApp()
112 onClicked: callHint.visible ? callHint.showLiveCall() : PanelState.focusMaximizedApp()
112− onDoubleClicked: PanelState.maximize()
113+ onDoubleClicked: PanelState.restore()
114 // WindowControlButtons inside the mouse area, otherwise QML doesn't grok nested hover events :/
115 // WindowControlButtons inside the mouse area, otherwise QML doesn't grok nested hover events :/
115 // cf. https://bugreports.qt.io/browse/QTBUG-32909
116 // cf. https://bugreports.qt.io/browse/QTBUG-32909
@@ -124,8 +125,10 @@ Item {
124 bottomMargin: units.gu(0.5)
125 bottomMargin: units.gu(0.5)
126 height: indicators.minimizedPanelHeight - anchors.topMargin - anchors.bottomMargin
127 height: indicators.minimizedPanelHeight - anchors.topMargin - anchors.bottomMargin
127− visible: PanelState.buttonsVisible && parent.containsMouse && !root.locked && !callHint.visible
128+ visible: ((PanelState.buttonsVisible && parent.containsMouse) ||
129+ (TouchControlsState.overlayShown && TouchControlsState.buttonsShownInPanel))
130+ && !root.locked && !callHint.visible
128− active: PanelState.buttonsVisible
131+ active: PanelState.buttonsVisible || TouchControlsState.overlayShown
129 windowIsMaximized: true
132 windowIsMaximized: true
130 onClose: PanelState.close()
133 onClose: PanelState.close()
131 onMinimize: PanelState.minimize()
134 onMinimize: PanelState.minimize()