on xenial help sign in
reorder mouse areas. dragging the launcher away was a bit iffy
30a5e6dMichael Zanetti
qml/Launcher/Launcher.qml+12−12
@@ -273,6 +273,18 @@ FocusScope {
273 }
273 }
274 }
274 }
275
275
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+
276 MouseArea {
288 MouseArea {
277 id: launcherDragArea
289 id: launcherDragArea
278 enabled: root.available && (root.state == "visible" || root.state == "visibleTemporary") && !root.lockedVisible
290 enabled: root.available && (root.state == "visible" || root.state == "visibleTemporary") && !root.lockedVisible
@@ -293,18 +305,6 @@ FocusScope {
293 }
305 }
294 }
306 }
295
307
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−
308 EdgeBarrier {
308 EdgeBarrier {
309 id: edgeBarrier
309 id: edgeBarrier
310 edge: Qt.LeftEdge
310 edge: Qt.LeftEdge