Commit 867475c3 authored by Marco Martin's avatar Marco Martin
Browse files

a mousearea to block over events of nearby applets

moving the mouse over the handle was impossible if
there was another applet right next to it
parent 5a77568e
......@@ -55,10 +55,21 @@ ContainmentLayoutManager.ConfigOverlayWithHandles {
PlasmaCore.FrameSvgItem {
id: frame
anchors.verticalCenter: parent.verticalCenter
x: rightAvailableSpace > width + units.gridUnit
x: overlay.rightAvailableSpace > width + units.gridUnit
? parent.width + units.gridUnit
: -width - units.gridUnit
// This MouseArea is used to block input between the applet and the handle, to not make it steal by other applets
MouseArea {
anchors {
top: parent.top
bottom: parent.bottom
}
z: -1
x: overlay.rightAvailableSpace > parent.width + units.gridUnit ? -units.gridUnit : 0
width: units.gridUnit + parent.width
hoverEnabled: true
}
transform: Translate {
x: open ? 0 : (overlay.rightAvailableSpace > frame.width + units.gridUnit ? -frame.width : frame.width)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment