diff options
author | markt <markt> | 2006-07-26 01:22:42 (GMT) |
---|---|---|
committer | markt <markt> | 2006-07-26 01:22:42 (GMT) |
commit | 14efe686cdc8023f9c984fc067206d40b07b2ad5 (patch) | |
tree | f81d24f8e4b6e2eb28255d64722995cc9bf3abbb /src/Window.cc | |
parent | 9229f8bc9ceae2505d7715cdea6e75aeb1b2c78b (diff) | |
download | fluxbox-14efe686cdc8023f9c984fc067206d40b07b2ad5.zip fluxbox-14efe686cdc8023f9c984fc067206d40b07b2ad5.tar.bz2 |
added resource and menu item for maximizing over tabs
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 8 |
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 | } |