on xenial help sign in
fix drag and drop of applications
commitb50f6a984d17886c2b6b64980e271c4e3503fe73 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 14 Mar 2017, 14:49 (10 years ago) parent61ee479
3 files changed+2−1
qml/ShellApplication.qml+1 qml/Stage/Spread/SpreadDelegateInputArea.qml−1 qml/Stage/Spread/Workspaces.qml+1
qml/ShellApplication.qml+1
@@ -17,6 +17,7 @@
1717import QtQuick 2.4
1818import QtQuick.Window 2.2
1919import WindowManager 1.0
20+import Unity.Application 0.1
2021
2122Instantiator {
2223 id: root
qml/Stage/Spread/SpreadDelegateInputArea.qml−1
@@ -144,7 +144,6 @@ Item {
144144 onReleased: {
145145 print("released!")
146146 var result = fakeDragItem.Drag.drop();
147− fakeDragItem.surface = null;
148147
149148 if (!d.moving) {
150149 root.clicked()
qml/Stage/Spread/Workspaces.qml+1
@@ -58,6 +58,7 @@ Item {
5858 }
5959 onDropped: {
6060 var surface = drag.source.surface;
61+ drag.source.surface = null;
6162 var workspace = listView.model.get(listView.hoveredWorkspaceIndex);
6263 print("dropping surface", surface, "on workspace", workspace)
6364 WorkspaceManager.moveSurfaceToWorkspace(surface, workspace);