summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-01-04 07:54:39 (GMT)
committerEike Hein <hein@kde.org>2017-01-04 08:02:20 (GMT)
commit180e1072e933cf13edb145dfeab2a62b7623a0eb (patch)
treeea70b89654ccd376ec89d14ac985f4ae56da8391
parentc94dc901aa52ae7a3c605557a6f8e8814707c806 (diff)
Clean up after a window delegate drag exits the window.
Summary: BUG:373920 Reviewers: #plasma, davidedmundson Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D3947
-rw-r--r--applets/pager/package/contents/ui/main.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/applets/pager/package/contents/ui/main.qml b/applets/pager/package/contents/ui/main.qml
index 0015c13..255ee36 100644
--- a/applets/pager/package/contents/ui/main.qml
+++ b/applets/pager/package/contents/ui/main.qml
@@ -54,6 +54,8 @@ MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
+ hoverEnabled: true
+
function colorWithAlpha(color, alpha) {
return Qt.rgba(color.r, color.g, color.b, alpha)
}
@@ -89,6 +91,14 @@ MouseArea {
service.startOperationCall(operation)
}
+ onContainsMouseChanged: {
+ if (!containsMouse && dragging) {
+ // Somewhat heavy-handed way to clean up after a window delegate drag
+ // exits the window.
+ pagerModel.refresh();
+ }
+ }
+
onWheel: {
if (wheel.angleDelta.y > 0 || wheel.angleDelta.x > 0) {
pagerModel.changePage((repeater.count + pagerModel.currentPage - 2) % repeater.count);