fix for restoring horizontally or vertically resized windows
This commit is contained in:
parent
37a602899d
commit
36d1edfbf6
1 changed files with 8 additions and 5 deletions
|
@ -538,12 +538,15 @@ void FbWinFrame::saveGeometry() {
|
||||||
if (m_state.fullscreen || m_state.maximized == MAX_FULL)
|
if (m_state.fullscreen || m_state.maximized == MAX_FULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!(m_state.maximized & MAX_HORZ)) {
|
||||||
m_state.x = x();
|
m_state.x = x();
|
||||||
m_state.y = y();
|
|
||||||
if (!(m_state.maximized & MAX_HORZ))
|
|
||||||
m_state.width = width();
|
m_state.width = width();
|
||||||
if (!m_state.shaded && !(m_state.maximized & MAX_VERT))
|
}
|
||||||
|
if (!(m_state.maximized & MAX_VERT)) {
|
||||||
|
m_state.y = y();
|
||||||
|
if (!m_state.shaded)
|
||||||
m_state.height = height();
|
m_state.height = height();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FbWinFrame::applyState() {
|
void FbWinFrame::applyState() {
|
||||||
|
|
Loading…
Reference in a new issue