@@ -1,5 +1,5 @@
2− * Copyright (C) 2016 Canonical, Ltd.
2+ * Copyright (C) 2016-2017 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
5 * it under the terms of the GNU General Public License as published by
@@ -143,6 +143,39 @@ Item {
143 consumesInput: true
143 consumesInput: true
148+ anchors.fill: parent
149+ sourceComponent: Component {
151+ acceptedButtons: Qt.LeftButton
152+ property bool dragging: false
153+ cursorShape: undefined // don't interfere with the cursor shape set by the underlying MirSurfaceItem
155+ if (mouse.button == Qt.LeftButton && mouse.modifiers == Qt.AltModifier) {
156+ d.moveHandler.handlePressedChanged(true, Qt.LeftButton, mouse.x, mouse.y);
158+ mouse.accepted = true;
160+ mouse.accepted = false;
163+ onPositionChanged: {
165+ d.moveHandler.handlePositionChanged(mouse);
170+ d.moveHandler.handlePressedChanged(false, Qt.LeftButton);
171+ d.moveHandler.handleReleased();
147 id: touchOverlayLoader
180 id: touchOverlayLoader
148 active: d.resizeable || d.moveable
181 active: d.resizeable || d.moveable