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 cbcb1f7..b87a9a5 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1655,6 +1655,9 @@ void FluxboxWindow::maximize(int type) {
1655 if (isShaded()) 1655 if (isShaded())
1656 shade(); 1656 shade();
1657 1657
1658 if (isResizing())
1659 stopResizing();
1660
1658 int head = screen().getHead(frame().window()); 1661 int head = screen().getHead(frame().window());
1659 int new_x = frame().x(), 1662 int new_x = frame().x(),
1660 new_y = frame().y(), 1663 new_y = frame().y(),
@@ -1730,7 +1733,12 @@ void FluxboxWindow::maximize(int type) {
1730 m_last_resize_y = new_y; 1733 m_last_resize_y = new_y;
1731 m_last_resize_w = new_w; 1734 m_last_resize_w = new_w;
1732 m_last_resize_h = new_h; 1735 m_last_resize_h = new_h;
1736
1737 ResizeCorner old_resize_corner = m_resize_corner;
1738 m_resize_corner = NOCORNER;
1733 fixsize(); 1739 fixsize();
1740 m_resize_corner = old_resize_corner;
1741
1734 moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h); 1742 moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h);
1735} 1743}
1736/** 1744/**