on xenial help sign in
align interval, dismiss the inverse area asap
commit2fcd6eda999792574db12cd1ea7d6c05d61a08a1 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 1 Mar 2017, 00:22 (10 years ago) parent437ae85
2 files changed+5−5
qml/ApplicationMenus/MenuBar.qml+3−3 qml/Stage/WindowDecoration.qml+2−2
qml/ApplicationMenus/MenuBar.qml+3−3
@@ -84,7 +84,7 @@ Item {
8484 anchors.fill: parent
8585 enabled: d.currentItem != null
8686 hoverEnabled: enabled && d.currentItem && d.currentItem.__popup != null
87− onPressed: { d.dismissAll(); mouse.accepted = false; }
87+ onPressed: { mouse.accepted = false; d.dismissAll(); }
8888 }
8989
9090 Row {
@@ -225,12 +225,12 @@ Item {
225225
226226 MouseArea {
227227 id: mouseArea
228− anchors.fill: row
228+ anchors.fill: parent
229229 hoverEnabled: d.currentItem
230230
231231 Timer {
232232 id: delayedPopupTimer
233− interval: 100
233+ interval: 150
234234 onTriggered: {
235235 if (root.windowMoving) return;
236236 var prevItem = d.currentItem;
qml/Stage/WindowDecoration.qml+2−2
@@ -125,7 +125,7 @@ MouseArea {
125125 fontSize: "medium"
126126 font.weight: root.active ? Font.Light : Font.Medium
127127 elide: Text.ElideRight
128− opacity: (overlayShown || priv.shouldShowMenus) && !root.windowMoving ? 0 : 1
128+ opacity: overlayShown || priv.shouldShowMenus ? 0 : 1
129129 visible: opacity != 0
130130 Behavior on opacity { UbuntuNumberAnimation {} }
131131 }
@@ -146,7 +146,7 @@ MouseArea {
146146 windowMoving: root.windowMoving
147147 }
148148
149− opacity: !overlayShown && priv.shouldShowMenus && !root.windowMoving ? 1 : 0
149+ opacity: !overlayShown && priv.shouldShowMenus ? 1 : 0
150150 visible: opacity == 1
151151 Behavior on opacity { UbuntuNumberAnimation {} }
152152 }