don't export the moveHandler from DesktopStage delegate, not needed
commit5e6ca453ac1fa46b92cf922d3da320236bd60a37
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateThu 1 Sep 2016, 15:17 (10 years ago)
parent284df1a
qml/Shell.qml+2−1
@@ -779,7 +779,8 @@ StyledItem {
779779 height: units.gu(3)
780780
781781 readonly property var previewRectangle: applicationsDisplayLoader.item && applicationsDisplayLoader.item.previewRectangle &&
782− applicationsDisplayLoader.item.previewRectangle.targetDragging ?
782+ applicationsDisplayLoader.item.previewRectangle.target &&
783+ applicationsDisplayLoader.item.previewRectangle.target.dragging ?
783784 applicationsDisplayLoader.item.previewRectangle : null
784785
785786 onPushedLeftBoundary: {
qml/Stages/DesktopStage.qml+1−1
@@ -347,7 +347,7 @@ AbstractStage {
347347 readonly property var surface: model.surface
348348 readonly property alias resizeArea: resizeArea
349349 readonly property alias focusedSurface: decoratedWindow.focusedSurface
350− readonly property var moveHandler: touchControls.overlayShown ? touchControls.moveHandler : decoratedWindow.moveHandler
350+ readonly property bool dragging: touchControls.overlayShown ? touchControls.moveHandler.dragging : decoratedWindow.moveHandler.dragging
351351
352352 readonly property bool isDash: model.application.appId == "unity8-dash"
353353
qml/Stages/FakeMaximizeDelegate.qml−1
@@ -37,7 +37,6 @@ Rectangle {
3737 property real appContainerHeight
3838
3939 readonly property real hintThreshold: 0.1
40− readonly property bool targetDragging: target && target.moveHandler.dragging
4140
4241 // Edge push progress
4342 // Value range is [0.0, 1.0]