issue with maximise and quadrant resize
simonb simonb
3 files changed,
12 insertions(+),
0 deletions(-)
M
src/Window.cc
→
src/Window.cc
@@ -1655,6 +1655,9 @@
if (isShaded()) shade(); + if (isResizing()) + stopResizing(); + int head = screen().getHead(frame().window()); int new_x = frame().x(), new_y = frame().y(),@@ -1730,7 +1733,12 @@ m_last_resize_x = new_x;
m_last_resize_y = new_y; m_last_resize_w = new_w; m_last_resize_h = new_h; + + ResizeCorner old_resize_corner = m_resize_corner; + m_resize_corner = NOCORNER; fixsize(); + m_resize_corner = old_resize_corner; + moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h); } /**
M
src/Window.hh
→
src/Window.hh
@@ -135,6 +135,7 @@ DECORM_LAST = (1<<11) // useful for getting "All"
}; enum ResizeCorner { + NOCORNER, LEFTTOP, LEFTBOTTOM, RIGHTBOTTOM,