on xenial help sign in
dismiss menus
commite92b64f6dcdff1c1287f209fb2c1ec3564dbdf02 authorNick Dedekind <nick.dedekind@canonical.com> dateFri 21 Oct 2016, 14:17 (10 years ago) parent5437420
1 file changed+22−2
qml/Panel/Panel.qml+22−2
qml/Panel/Panel.qml+22−2
@@ -52,11 +52,11 @@ Item {
5252 property string mode: "staged"
5353
5454 MouseArea {
55+ id: backMouseEater
5556 anchors.fill: parent
5657 anchors.topMargin: panelHeight
57− visible: !indicators.fullyClosed
58+ visible: false
5859 enabled: visible
59− onClicked: if (indicators.fullyOpened) indicators.hide();
6060 hoverEnabled: true // should also eat hover events, otherwise they will pass through
6161 }
6262
@@ -277,6 +277,16 @@ Item {
277277 }
278278 }
279279 }
280+ Binding {
281+ target: backMouseEater
282+ property: "visible"
283+ value: true
284+ when: __applicationMenus.fullyOpened
285+ }
286+ Connections {
287+ target: backMouseEater
288+ onClicked: __applicationMenus.hide();
289+ }
280290 }
281291 }
282292
@@ -482,6 +492,16 @@ Item {
482492 onEnabledChanged: {
483493 if (!enabled) hide();
484494 }
495+ Binding {
496+ target: backMouseEater
497+ property: "visible"
498+ value: true
499+ when: __indicators.fullyOpened
500+ }
501+ Connections {
502+ target: backMouseEater
503+ onClicked: __indicators.hide();
504+ }
485505 }
486506 }
487507