From 36d1edfbf608c69528d903bbb798b819056ae903 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sat, 23 Aug 2008 15:50:09 -0700 Subject: fix for restoring horizontally or vertically resized windows --- src/FbWinFrame.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 4533fa6..9e7f613 100644 --- a/src/FbWinFrame.cc +++ b/src/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() { -- cgit v0.11.2