diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-07 10:27:06 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-07 10:27:06 +0000 |
| commit | 300491ce5a932ba777274e7f5c3d085f5ca59ee0 (patch) | |
| tree | 089b6cc4dd4d14640858cab9b05b4e73927d9c3b /src/Toolbar.cc | |
| parent | b29977196b527bb50b045cad249e9c149fa0ef75 (diff) | |
sync with bb-cvs
Diffstat (limited to 'src/Toolbar.cc')
| -rw-r--r-- | src/Toolbar.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 2890fa26..2487c112 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -159,8 +159,6 @@ Toolbar::Toolbar(BScreen *scrn) { frame.base = frame.label = frame.wlabel = frame.clk = frame.button = frame.pbutton = None; - screen->addStrut(&strut); - reconfigure(); mapToolbar(); } @@ -203,6 +201,7 @@ void Toolbar::mapToolbar() { XMapSubwindows(display, frame.window); XMapWindow(display, frame.window); } + screen->addStrut(&strut); updateStrut(); } @@ -211,6 +210,9 @@ void Toolbar::unmapToolbar() { if (toolbarmenu->isVisible()) toolbarmenu->hide(); //hidden so we can maximize over the toolbar + screen->removeStrut(&strut); + screen->updateAvailableArea(); + XUnmapWindow(display, frame.window); updateStrut(); } |
