diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Window.cc b/src/Window.cc index 09b048b..d0f28ce 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -1716,10 +1716,15 @@ void FluxboxWindow::maximize(int type) { | |||
1716 | m_last_resize_w = new_w; | 1716 | m_last_resize_w = new_w; |
1717 | m_last_resize_h = new_h; | 1717 | m_last_resize_h = new_h; |
1718 | 1718 | ||
1719 | ResizeDirection old_resize_corner = m_resize_corner; | 1719 | // frankly, that xterm bug was pretty obscure, and it's really annoying not |
1720 | m_resize_corner = NOCORNER; | 1720 | // being able to maximize my terminals, so we make an option |
1721 | fixsize(0, 0, true); | 1721 | // but we do fix size hints when restoring the window to normal size |
1722 | m_resize_corner = old_resize_corner; | 1722 | if (!screen().getMaxIgnoreIncrement() || !maximized) { |
1723 | ResizeDirection old_resize_corner = m_resize_corner; | ||
1724 | m_resize_corner = NOCORNER; | ||
1725 | fixsize(0, 0, (maximized ? true : false)); | ||
1726 | m_resize_corner = old_resize_corner; | ||
1727 | } | ||
1723 | 1728 | ||
1724 | moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h); | 1729 | moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h); |
1725 | 1730 | ||