all repos — fluxbox @ 36d1edfbf608c69528d903bbb798b819056ae903

custom fork of the fluxbox windowmanager

fix for restoring horizontally or vertically resized windows
Mark Tiefenbruck mark@fluxbox.org
commit

36d1edfbf608c69528d903bbb798b819056ae903

parent

37a602899dc1c6f42076ff64d19a4b378cfa2b8f

1 files changed, 8 insertions(+), 5 deletions(-)

jump to
M src/FbWinFrame.ccsrc/FbWinFrame.cc

@@ -538,12 +538,15 @@ void FbWinFrame::saveGeometry() {

if (m_state.fullscreen || m_state.maximized == MAX_FULL) return; - m_state.x = x(); - m_state.y = y(); - if (!(m_state.maximized & MAX_HORZ)) + if (!(m_state.maximized & MAX_HORZ)) { + m_state.x = x(); m_state.width = width(); - if (!m_state.shaded && !(m_state.maximized & MAX_VERT)) - m_state.height = height(); + } + if (!(m_state.maximized & MAX_VERT)) { + m_state.y = y(); + if (!m_state.shaded) + m_state.height = height(); + } } void FbWinFrame::applyState() {