summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-04-22 22:24:15 +0000
committerDana Jansens <danakj@orodu.net>2002-04-22 22:24:15 +0000
commit2809005ab0ab761a831f4353f2ff190a62d92794 (patch)
tree8b19a0ef2cf21d22a04d6e782ba4b53c4c2da529 /src/Window.cc
parentcf950146f7e38e442a518445d850106b4fa87ee1 (diff)
maximize and placeWindow now behave properly when the slit is hidden
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc3
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)) ||