From 2809005ab0ab761a831f4353f2ff190a62d92794 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 22 Apr 2002 22:24:15 +0000 Subject: maximize and placeWindow now behave properly when the slit is hidden --- src/Window.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Window.cc') diff --git a/src/Window.cc b/src/Window.cc index 6a057a75..6d9d8859 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1587,7 +1587,8 @@ void OpenboxWindow::maximize(unsigned int button) { slit->placement() == Slit::BottomRight)) || slit->placement() == Slit::BottomCenter) { // exclude bottom - space.setH(space.h() - (screen->size().h() - slit_y)); + space.setH(space.h() - ((screen->size().h() - slit_y) > tbarh ? + screen->size().h() - slit_y : tbarh)); } else {// if ((slit->direction() == Slit::Vertical && // (slit->placement() == Slit::TopLeft || // slit->placement() == Slit::BottomLeft)) || -- cgit v1.2.3