@@ -74,17 +74,15 @@ Item {
7474 id: overlay
7575 objectName: "windowControlsOverlay"
7676 anchors.fill: parent
77− //opacity: target.surface == MirFocusController.focusedSurface && overlayTimer.running ? 1 : 0
78− //visible: opacity == 1
7977 visible: target.surface == MirFocusController.focusedSurface && overlayTimer.running
80− enabled: visible
81−
82− readonly property bool anyMaximized: target && (target.maximized || target.maximizedLeft || target.maximizedRight)
78+ opacity: visible ? 1 : 0
8379
8480 Behavior on opacity {
8581 OpacityAnimator { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
8682 }
8783
84+ readonly property bool anyMaximized: target && (target.maximized || target.maximizedLeft || target.maximizedRight)
85+
8886 Image {
8987 source: "graphics/arrows-centre.png"
9088 width: units.gu(10)