[dnd] Optionally restore the drag actor

Currently, the drag and drop code assumes that on a successful drop
the target will either consume the drag actor or that it is otherwise
OK to destroy the actor.
As the drag behavior for window preview was changed, dropping a preview
on the dash now results in the preview being swallowed - to fix, add an
option to restore the actor in case of a successful drop as well.

https://bugzilla.gnome.org/show_bug.cgi?id=619203
This commit is contained in:
Florian Müllner
2010-05-20 16:44:45 +02:00
parent a0be7fa455
commit 3e2a9a57a1
3 changed files with 53 additions and 19 deletions

View File

@ -1244,7 +1244,6 @@ SingleView.prototype = {
this._timeoutId = 0;
}
this._dropGroup.lower_bottom();
actor.opacity = 255;
this._inDrag = false;
this._computeWorkspacePositions();
this._updateWorkspaceActors(true);