diff options
author | fluxgen <fluxgen> | 2003-07-01 12:40:56 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-07-01 12:40:56 (GMT) |
commit | c05206da7a8ff39fa70a724b06c711a33c08a0f1 (patch) | |
tree | f5c8256b6f6f430a8a590bc0a108a0a7ba998f5f /src/ToolbarHandler.cc | |
parent | c34e820240e514b983adfc07f632f463a9022356 (diff) | |
download | fluxbox-c05206da7a8ff39fa70a724b06c711a33c08a0f1.zip fluxbox-c05206da7a8ff39fa70a724b06c711a33c08a0f1.tar.bz2 |
fixed redraw workspace label bug. Thanks Jochem Kossen j.kossen-AT-home.nl
Diffstat (limited to 'src/ToolbarHandler.cc')
-rw-r--r-- | src/ToolbarHandler.cc | 10 |
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) { | |||
382 | void ToolbarHandler::updateCurrentWorkspace(BScreen &screen) { | 382 | void 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 | ||