diff --git a/applets/pager/package/contents/ui/main.qml b/applets/pager/package/contents/ui/main.qml --- a/applets/pager/package/contents/ui/main.qml +++ b/applets/pager/package/contents/ui/main.qml @@ -54,6 +54,8 @@ 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 @@ 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);