on xenial help sign in
align interval, dismiss the inverse area asap
2fcd6edLukáš Tinkl
qml/ApplicationMenus/MenuBar.qml+3−3
@@ -84,7 +84,7 @@ Item {
84 anchors.fill: parent
84 anchors.fill: parent
85 enabled: d.currentItem != null
85 enabled: d.currentItem != null
86 hoverEnabled: enabled && d.currentItem && d.currentItem.__popup != null
86 hoverEnabled: enabled && d.currentItem && d.currentItem.__popup != null
87− onPressed: { d.dismissAll(); mouse.accepted = false; }
87+ onPressed: { mouse.accepted = false; d.dismissAll(); }
88 }
88 }
89
89
90 Row {
90 Row {
@@ -225,12 +225,12 @@ Item {
225
225
226 MouseArea {
226 MouseArea {
227 id: mouseArea
227 id: mouseArea
228− anchors.fill: row
228+ anchors.fill: parent
229 hoverEnabled: d.currentItem
229 hoverEnabled: d.currentItem
230
230
231 Timer {
231 Timer {
232 id: delayedPopupTimer
232 id: delayedPopupTimer
233− interval: 100
233+ interval: 150
234 onTriggered: {
234 onTriggered: {
235 if (root.windowMoving) return;
235 if (root.windowMoving) return;
236 var prevItem = d.currentItem;
236 var prevItem = d.currentItem;
qml/Stage/WindowDecoration.qml+2−2
@@ -125,7 +125,7 @@ MouseArea {
125 fontSize: "medium"
125 fontSize: "medium"
126 font.weight: root.active ? Font.Light : Font.Medium
126 font.weight: root.active ? Font.Light : Font.Medium
127 elide: Text.ElideRight
127 elide: Text.ElideRight
128− opacity: (overlayShown || priv.shouldShowMenus) && !root.windowMoving ? 0 : 1
128+ opacity: overlayShown || priv.shouldShowMenus ? 0 : 1
129 visible: opacity != 0
129 visible: opacity != 0
130 Behavior on opacity { UbuntuNumberAnimation {} }
130 Behavior on opacity { UbuntuNumberAnimation {} }
131 }
131 }
@@ -146,7 +146,7 @@ MouseArea {
146 windowMoving: root.windowMoving
146 windowMoving: root.windowMoving
147 }
147 }
148
148
149− opacity: !overlayShown && priv.shouldShowMenus && !root.windowMoving ? 1 : 0
149+ opacity: !overlayShown && priv.shouldShowMenus ? 1 : 0
150 visible: opacity == 1
150 visible: opacity == 1
151 Behavior on opacity { UbuntuNumberAnimation {} }
151 Behavior on opacity { UbuntuNumberAnimation {} }
152 }
152 }