aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index f2b57f2..fdff04c 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1728,6 +1728,10 @@ void FluxboxWindow::maximize(int type) {
1728 m_old_height = new_h; 1728 m_old_height = new_h;
1729 new_y = screen().maxTop(head); 1729 new_y = screen().maxTop(head);
1730 new_h = screen().maxBottom(head) - new_y - 2*frame().window().borderWidth(); 1730 new_h = screen().maxBottom(head) - new_y - 2*frame().window().borderWidth();
1731 if (!screen().getMaxOverTabs()) {
1732 new_y += yOffset();
1733 new_h -= heightOffset();
1734 }
1731 } 1735 }
1732 maximized ^= MAX_VERT; 1736 maximized ^= MAX_VERT;
1733 } 1737 }
@@ -1747,6 +1751,10 @@ void FluxboxWindow::maximize(int type) {
1747 m_old_width = new_w; 1751 m_old_width = new_w;
1748 new_x = screen().maxLeft(head); 1752 new_x = screen().maxLeft(head);
1749 new_w = screen().maxRight(head) - new_x - 2*frame().window().borderWidth(); 1753 new_w = screen().maxRight(head) - new_x - 2*frame().window().borderWidth();
1754 if (!screen().getMaxOverTabs()) {
1755 new_x += xOffset();
1756 new_w -= widthOffset();
1757 }
1750 } 1758 }
1751 maximized ^= MAX_HORZ; 1759 maximized ^= MAX_HORZ;
1752 } 1760 }