[workspace] Ensure we emit drag-end if we're in a drag during a destroy

Showing the window overlay relies on drag-end being emitted, so do so if we're
in a drag.
This commit is contained in:
Colin Walters 2010-03-18 16:39:11 -04:00
parent 908b0fb727
commit b7c6ec4b46

View File

@ -204,6 +204,11 @@ WindowClone.prototype = {
if (this._zoomLightbox)
this._zoomLightbox.destroy();
if (this._inDrag) {
this.emit('drag-end');
this._inDrag = false;
}
this.disconnectAll();
},