all repos — fluxbox @ 146df03e73c332f8d3165201d7616d6f1035efd0

custom fork of the fluxbox windowmanager

toolbar changes
fluxgen fluxgen
commit

146df03e73c332f8d3165201d7616d6f1035efd0

parent

2f70830cbc53b43fcc92e925e55311cfb780d1e4

1 files changed, 12 insertions(+), 12 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.102 2002/11/26 16:44:48 fluxgen Exp $ +// $Id: Window.cc,v 1.103 2002/11/27 14:00:44 fluxgen Exp $ #include "Window.hh"

@@ -1739,7 +1739,7 @@ switch (screen->getToolbarPlacement()) {

case Toolbar::TOPLEFT: case Toolbar::TOPCENTER: case Toolbar::TOPRIGHT: - slitModT -= screen->getToolbar()->getExposedHeight() + + slitModT -= screen->getToolbar()->exposedHeight() + screen->getBorderWidth(); break; default:

@@ -1752,7 +1752,7 @@ switch (screen->getToolbarPlacement()) {

case Toolbar::BOTTOMLEFT: case Toolbar::BOTTOMCENTER: case Toolbar::BOTTOMRIGHT: - slitModB -= screen->getToolbar()->getExposedHeight() + + slitModB -= screen->getToolbar()->exposedHeight() + screen->getBorderWidth(); break; default:

@@ -1800,15 +1800,15 @@ if (screen->hasXinerama()) {

// is the toolbar on this head? if ((screen->getToolbarOnHead() == (signed) head) || (screen->getToolbarOnHead() < 0)) { - dh -= screen->getToolbar()->getExposedHeight() + + dh -= screen->getToolbar()->exposedHeight() + screen->getBorderWidth2x(); } } else { - dh -= screen->getToolbar()->getExposedHeight() + + dh -= screen->getToolbar()->exposedHeight() + screen->getBorderWidth2x(); } #else // !XINERAMA - dh -= screen->getToolbar()->getExposedHeight() + + dh -= screen->getToolbar()->exposedHeight() + screen->getBorderWidth2x(); #endif // XINERAMA }

@@ -1852,7 +1852,7 @@ // is the toolbar on this head?

if ((screen->getToolbarOnHead() == (signed) head) || (screen->getToolbarOnHead() < 0)) { dy += (((screen->getHeadHeight(head) + slitModT - slitModB - - (screen->getToolbar()->getExposedHeight())) - dh) / 2) + - (screen->getToolbar()->exposedHeight())) - dh) / 2) - screen->getBorderWidth2x(); } else { dy += ((screen->getHeadHeight(head) + slitModT - slitModB - dh) / 2) -

@@ -1860,11 +1860,11 @@ screen->getBorderWidth();

} } else { // no xinerama dy = (((screen->getHeight() + slitModT - slitModB - - (screen->getToolbar()->getExposedHeight())) - dh) / 2) - + (screen->getToolbar()->exposedHeight())) - dh) / 2) - screen->getBorderWidth2x(); } #else // !XINERAMA - dy = (((screen->getHeight() + slitModT - slitModB - (screen->getToolbar()->getExposedHeight())) + dy = (((screen->getHeight() + slitModT - slitModB - (screen->getToolbar()->exposedHeight())) - dh) / 2) - screen->getBorderWidth2x(); #endif // XINERAMA

@@ -1877,11 +1877,11 @@ // if < 0 than it's over ALL heads, with no xinerama it's there too

if (!screen->hasXinerama() || (screen->getToolbarOnHead() == (signed) head) || (screen->getToolbarOnHead() < 0)) { - dy += screen->getToolbar()->getExposedHeight() + + dy += screen->getToolbar()->exposedHeight() + screen->getBorderWidth2x(); } #else // !XINERAMA - dy += screen->getToolbar()->getExposedHeight() + + dy += screen->getToolbar()->exposedHeight() + screen->getBorderWidth2x(); #endif // XINERAMA break;

@@ -2968,7 +2968,7 @@ switch (screen->getToolbarPlacement()) {

case Toolbar::TOPLEFT: case Toolbar::TOPCENTER: case Toolbar::TOPRIGHT: - dtty = screen->getToolbar()->getExposedHeight() + + dtty = screen->getToolbar()->exposedHeight() + screen->getBorderWidth(); dbby = screen->getHeight(); break;