From b7c6ec4b469ebf541e05ff0dd3d458349685bd0b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 18 Mar 2010 16:39:11 -0400 Subject: [PATCH] [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. --- js/ui/workspace.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 522c251c2..e010e8dd1 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -204,6 +204,11 @@ WindowClone.prototype = { if (this._zoomLightbox) this._zoomLightbox.destroy(); + if (this._inDrag) { + this.emit('drag-end'); + this._inDrag = false; + } + this.disconnectAll(); },