@@ -74,17 +74,15 @@ Item {
74 id: overlay
74 id: overlay
75 objectName: "windowControlsOverlay"
75 objectName: "windowControlsOverlay"
76 anchors.fill: parent
76 anchors.fill: parent
77− //opacity: target.surface == MirFocusController.focusedSurface && overlayTimer.running ? 1 : 0
78− //visible: opacity == 1
79 visible: target.surface == MirFocusController.focusedSurface && overlayTimer.running
77 visible: target.surface == MirFocusController.focusedSurface && overlayTimer.running
80− enabled: visible
78+ opacity: visible ? 1 : 0
82− readonly property bool anyMaximized: target && (target.maximized || target.maximizedLeft || target.maximizedRight)
84 Behavior on opacity {
80 Behavior on opacity {
85 OpacityAnimator { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
81 OpacityAnimator { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
84+ readonly property bool anyMaximized: target && (target.maximized || target.maximizedLeft || target.maximizedRight)
89 source: "graphics/arrows-centre.png"
87 source: "graphics/arrows-centre.png"
90 width: units.gu(10)
88 width: units.gu(10)