diff --git a/src/popups/ClipboardPopup.qml b/src/popups/ClipboardPopup.qml index e82fb57..07f5503 100644 --- a/src/popups/ClipboardPopup.qml +++ b/src/popups/ClipboardPopup.qml @@ -14,12 +14,11 @@ PanelWindow { readonly property int fw: Theme.cornerRadius readonly property int fh: Theme.cornerRadius + anchors.top: true + anchors.left: true anchors.right: true anchors.bottom: true - implicitWidth: popupWidth + fw - implicitHeight: popupHeight + fh - exclusionMode: ExclusionMode.Ignore color: "transparent" @@ -33,15 +32,6 @@ PanelWindow { onTriggered: { if (root.windowVisible && Popups.clipboardOpen) root.wantsFocus = true } } - mask: Region { item: maskProxy } - Item { - id: maskProxy - x: root.implicitWidth - sizer.width - y: root.implicitHeight - sizer.height - width: sizer.width - height: sizer.height - } - property bool windowVisible: false visible: windowVisible @@ -69,6 +59,11 @@ PanelWindow { } } + MouseArea { + anchors.fill: parent + onClicked: Popups.clipboardOpen = false + } + Item { id: sizer anchors.right: parent.right @@ -83,6 +78,11 @@ PanelWindow { Behavior on width { NumberAnimation { duration: Theme.animDuration; easing.type: Easing.InOutCubic } } Behavior on height { NumberAnimation { duration: Theme.animDuration; easing.type: Easing.InOutCubic } } + MouseArea { + anchors.fill: parent + onClicked: {} + } + PopupShape { anchors.fill: parent attachedEdge: "bottom-right"