@@ -42,35 +42,6 @@ AbstractStage {
4242 }
4343 }
4444
45− // Alt+LMB handlers
46− function windowMoveRequested(scenePos) {
47− var candidate;
48− if (priv.focusedAppDelegate && priv.focusedAppDelegate.contains(mapToItem(priv.focusedAppDelegate, scenePos.x, scenePos.y))) {
49− candidate = priv.focusedAppDelegate;
50− } else {
51− candidate = appContainer.childAt(scenePos.x, scenePos.y);
52− }
53−
54− if (candidate && candidate.moveHandler) {
55− var localPos = mapToItem(candidate, scenePos.x, scenePos.y)
56− candidate.focus = true;
57− candidate.moveHandler.handlePressedChanged(true, Qt.LeftButton, localPos.x, localPos.y);
58− }
59− }
60− function windowMoveUpdated(scenePos) {
61− if (priv.focusedAppDelegate) {
62− var localPos = mapToItem(priv.focusedAppDelegate, scenePos.x, scenePos.y)
63− priv.focusedAppDelegate.moveHandler.handlePositionChanged(localPos);
64− }
65− }
66− function windowMoveEnded() {
67− if (priv.focusedAppDelegate) {
68− priv.focusedAppDelegate.moveHandler.handlePressedChanged(false, Qt.LeftButton);
69− priv.focusedAppDelegate.moveHandler.handleReleased();
70− fakeRectangle.commit();
71− }
72− }
73−
7445 // Used by TutorialRight
7546 property bool spreadShown: spread.state == "altTab"
7647
@@ -379,8 +350,7 @@ AbstractStage {
379350 readonly property var surface: model.surface
380351 readonly property alias resizeArea: resizeArea
381352 readonly property alias focusedSurface: decoratedWindow.focusedSurface
382− readonly property bool dragging: moveHandler.dragging
383− readonly property alias moveHandler: decoratedWindow.moveHandler // for Alt+LMB dragging
353+ readonly property bool dragging: touchControls.overlayShown ? touchControls.dragging : decoratedWindow.dragging
384354
385355 readonly property bool isDash: model.application.appId == "unity8-dash"
386356 readonly property alias clientAreaItem: decoratedWindow.clientAreaItem