Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/popups/ClipboardPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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

Expand Down Expand Up @@ -69,6 +59,11 @@ PanelWindow {
}
}

MouseArea {
anchors.fill: parent
onClicked: Popups.clipboardOpen = false
}

Item {
id: sizer
anchors.right: parent.right
Expand All @@ -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"
Expand Down
Loading