diff options
Diffstat (limited to 'src/Window.cc')
| -rw-r--r-- | src/Window.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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)) || |
