[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:
parent
908b0fb727
commit
b7c6ec4b46
@ -204,6 +204,11 @@ WindowClone.prototype = {
|
||||
if (this._zoomLightbox)
|
||||
this._zoomLightbox.destroy();
|
||||
|
||||
if (this._inDrag) {
|
||||
this.emit('drag-end');
|
||||
this._inDrag = false;
|
||||
}
|
||||
|
||||
this.disconnectAll();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user