Bug 594916 - Allow cancelling DND by hitting Esc

Esc used to close the overview and get the DND actor stuck on the desktop when
it was pressed when dragging.
This commit is contained in:
Marina Zhurakhinskaya
2009-09-22 16:15:28 -04:00
parent 0918bdd612
commit 6cae94edcc
2 changed files with 142 additions and 73 deletions

View File

@ -781,7 +781,7 @@ BaseWellItem.prototype = {
if (!hover) {
if (this.actor.pressed && this._dragStartX != null) {
this.actor.fake_release();
this._draggable.startDrag(this.icon.actor, this._dragStartX, this._dragStartY,
this._draggable.startDrag(this._dragStartX, this._dragStartY,
Clutter.get_current_event_time());
} else {
this._dragStartX = null;