on xenial help sign in
fix drag and drop of applications
b50f6a9Michael Zanetti
qml/ShellApplication.qml+1
@@ -17,6 +17,7 @@
17import QtQuick 2.4
17import QtQuick 2.4
18import QtQuick.Window 2.2
18import QtQuick.Window 2.2
19import WindowManager 1.0
19import WindowManager 1.0
20+import Unity.Application 0.1
20
21
21Instantiator {
22Instantiator {
22 id: root
23 id: root
qml/Stage/Spread/SpreadDelegateInputArea.qml−1
@@ -144,7 +144,6 @@ Item {
144 onReleased: {
144 onReleased: {
145 print("released!")
145 print("released!")
146 var result = fakeDragItem.Drag.drop();
146 var result = fakeDragItem.Drag.drop();
147− fakeDragItem.surface = null;
148
147
149 if (!d.moving) {
148 if (!d.moving) {
150 root.clicked()
149 root.clicked()
qml/Stage/Spread/Workspaces.qml+1
@@ -58,6 +58,7 @@ Item {
58 }
58 }
59 onDropped: {
59 onDropped: {
60 var surface = drag.source.surface;
60 var surface = drag.source.surface;
61+ drag.source.surface = null;
61 var workspace = listView.model.get(listView.hoveredWorkspaceIndex);
62 var workspace = listView.model.get(listView.hoveredWorkspaceIndex);
62 print("dropping surface", surface, "on workspace", workspace)
63 print("dropping surface", surface, "on workspace", workspace)
63 WorkspaceManager.moveSurfaceToWorkspace(surface, workspace);
64 WorkspaceManager.moveSurfaceToWorkspace(surface, workspace);