aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarHandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolbarHandler.cc')
-rw-r--r--src/ToolbarHandler.cc10
1 files 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 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ToolbarHandler.cc,v 1.18 2003/06/26 12:22:42 rathnor Exp $ 23// $Id: ToolbarHandler.cc,v 1.19 2003/07/01 12:40:56 fluxgen Exp $
24 24
25/** 25/**
26 * The ToolbarHandler class acts as a rough interface to the toolbar. 26 * The ToolbarHandler class acts as a rough interface to the toolbar.
@@ -382,14 +382,12 @@ void ToolbarHandler::updateWorkspace(FluxboxWindow &win) {
382void ToolbarHandler::updateCurrentWorkspace(BScreen &screen) { 382void ToolbarHandler::updateCurrentWorkspace(BScreen &screen) {
383 if (&screen != &m_screen) 383 if (&screen != &m_screen)
384 return; 384 return;
385 // if only displaying current workspace, update list 385
386 // otherwise ignore it 386 m_toolbar->redrawWorkspaceLabel(true);
387 if (mode() != WORKSPACE && mode() != WORKSPACEICONS)
388 return;
389 m_toolbar->disableUpdates(); 387 m_toolbar->disableUpdates();
390 m_toolbar->delAllIcons(true); 388 m_toolbar->delAllIcons(true);
391 initForScreen(m_screen); 389 initForScreen(m_screen);
392 m_toolbar->enableUpdates(); 390 m_toolbar->enableUpdates();
393 m_toolbar->redrawWorkspaceLabel(true); 391
394} 392}
395 393