From b39bc62171f3a08f50b304f0952d4919278c9bdd Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Wed, 25 Feb 2009 14:01:39 -0500 Subject: [PATCH] Destroy workspaces background when exiting overlay mode Otherwise, we kept adding new backgrounds which was breaking the overlay mode when it was re-entered. --- js/ui/overlay.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 6b61b0f4f..1d7ca16c3 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -685,6 +685,9 @@ Overlay.prototype = { this._workspaces.destroy(); this._workspaces = null; + this._workspacesBackground.destroy(); + this._workspacesBackground = null; + this._sideshow.hide(); this._group.hide(); },