diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-06-21 01:06:29 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-06-21 01:06:29 +0000 |
| commit | 1766453ca2ce30adf84798cb504e8b4d258bd08f (patch) | |
| tree | 0f667ab5a3f22293926965086258f98e09e42c46 /src/Toolbar.cc | |
| parent | 8941da8e41d15ae6729c04b2933d74869c25e857 (diff) | |
sync with blackbox-cvs
Diffstat (limited to 'src/Toolbar.cc')
| -rw-r--r-- | src/Toolbar.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 447e0d03..55beb59d 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -528,15 +528,20 @@ void Toolbar::updateStrut(void) { // left and right are always 0 strut.top = strut.bottom = 0; + // when hidden only one border is visible + unsigned int border_width = screen->getBorderWidth(); + if (! do_auto_hide) + border_width *= 2; + if (! screen->doHideToolbar()) { switch(placement) { case TopLeft: case TopCenter: case TopRight: - strut.top = getExposedHeight() + (screen->getBorderWidth() * 2); + strut.top = getExposedHeight() + border_width; break; default: - strut.bottom = getExposedHeight() + (screen->getBorderWidth() * 2); + strut.bottom = getExposedHeight() + border_width; } } |
