From 300491ce5a932ba777274e7f5c3d085f5ca59ee0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 7 Jul 2002 10:27:06 +0000 Subject: sync with bb-cvs --- src/Toolbar.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Toolbar.cc') 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(); } -- cgit v1.2.3