From c05206da7a8ff39fa70a724b06c711a33c08a0f1 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 1 Jul 2003 12:40:56 +0000 Subject: fixed redraw workspace label bug. Thanks Jochem Kossen j.kossen-AT-home.nl --- src/ToolbarHandler.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ToolbarHandler.cc b/src/ToolbarHandler.cc index 317890a..81b8520 100644 --- a/src/ToolbarHandler.cc +++ b/src/ToolbarHandler.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolbarHandler.cc,v 1.18 2003/06/26 12:22:42 rathnor Exp $ +// $Id: ToolbarHandler.cc,v 1.19 2003/07/01 12:40:56 fluxgen Exp $ /** * The ToolbarHandler class acts as a rough interface to the toolbar. @@ -382,14 +382,12 @@ void ToolbarHandler::updateWorkspace(FluxboxWindow &win) { void ToolbarHandler::updateCurrentWorkspace(BScreen &screen) { if (&screen != &m_screen) return; - // if only displaying current workspace, update list - // otherwise ignore it - if (mode() != WORKSPACE && mode() != WORKSPACEICONS) - return; + + m_toolbar->redrawWorkspaceLabel(true); m_toolbar->disableUpdates(); m_toolbar->delAllIcons(true); initForScreen(m_screen); m_toolbar->enableUpdates(); - m_toolbar->redrawWorkspaceLabel(true); + } -- cgit v0.11.2