on xenial help sign in
reorder mouse areas. dragging the launcher away was a bit iffy
commit30a5e6dcb362eb56e030bc915fcca2f70a11197b authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 4 May 2016, 14:07 (10 years ago) parent8b885b1
1 file changed+12−12
qml/Launcher/Launcher.qml+12−12
qml/Launcher/Launcher.qml+12−12
@@ -273,6 +273,18 @@ FocusScope {
273273 }
274274 }
275275
276+ InverseMouseArea {
277+ id: closeMouseArea
278+ anchors.fill: panel
279+ enabled: root.state == "visible" && (!root.lockedVisible || panel.highlightIndex >= -1)
280+ visible: enabled
281+ onPressed: {
282+ mouse.accepted = false;
283+ panel.highlightIndex = -2;
284+ root.hide();
285+ }
286+ }
287+
276288 MouseArea {
277289 id: launcherDragArea
278290 enabled: root.available && (root.state == "visible" || root.state == "visibleTemporary") && !root.lockedVisible
@@ -293,18 +305,6 @@ FocusScope {
293305 }
294306 }
295307
296− InverseMouseArea {
297− id: closeMouseArea
298− anchors.fill: panel
299− enabled: root.state == "visible" && (!root.lockedVisible || panel.highlightIndex >= -1)
300− visible: enabled
301− onPressed: {
302− mouse.accepted = false;
303− panel.highlightIndex = -2;
304− root.hide();
305− }
306− }
307−
308308 EdgeBarrier {
309309 id: edgeBarrier
310310 edge: Qt.LeftEdge