fix for restoring horizontally or vertically resized windows

This commit is contained in:
Mark Tiefenbruck 2008-08-23 15:50:09 -07:00
parent 37a602899d
commit 36d1edfbf6

View file

@ -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() {