From 7c1bc53c9d18b186eea123b61d75d15a92242bc2 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 3 Jun 2015 12:52:02 -0700 Subject: [PATCH] better panel drag behavior --- containments/panel/contents/ui/main.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/containments/panel/contents/ui/main.qml b/containments/panel/contents/ui/main.qml index c0a3d3b2..beec7ea2 100644 --- a/containments/panel/contents/ui/main.qml +++ b/containments/panel/contents/ui/main.qml @@ -132,9 +132,7 @@ PlasmaCore.ColorScope { easing.type: Easing.InOutQuad } } - Rectangle { - id: bah - } + Connections { target: applet onExpandedChanged: { @@ -179,6 +177,7 @@ PlasmaCore.ColorScope { } Rectangle { + z: 1 parent: slidingPanel.visible ? panelContents : root anchors { left: parent.left @@ -188,6 +187,10 @@ PlasmaCore.ColorScope { height: root.height color: PlasmaCore.ColorScope.backgroundColor + //used as is needed somebody to filter events + MouseArea { + anchors.fill: parent + } Loader { height: parent.height width: item.width @@ -259,6 +262,7 @@ PlasmaCore.ColorScope { } } MouseArea { + z: 99 property int oldMouseY: 0 anchors.fill: parent