From a4e53953a98bf2064b5b0e0ca661841a3c5daef6 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 9 Feb 2011 23:57:23 +0100 Subject: [PATCH] workspaceSwitcher: Initially hide after creation The default state of the switcher is constructed but not visible, so create it that way. This fixes a bug where if we created the switcher but didn't show it or use it we'd end up with an empty, odd looking switcher. --- js/ui/workspaceSwitcherPopup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/workspaceSwitcherPopup.js b/js/ui/workspaceSwitcherPopup.js index ab1893372..79e5db972 100644 --- a/js/ui/workspaceSwitcherPopup.js +++ b/js/ui/workspaceSwitcherPopup.js @@ -49,7 +49,8 @@ WorkspaceSwitcherPopup.prototype = { this._position(); - this.actor.show(); + this.actor.hide(); + this._timeoutId = Mainloop.timeout_add(DISPLAY_TIMEOUT, Lang.bind(this, this._onTimeout)); },