aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbWinFrame.cc13
1 files 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() {
538 if (m_state.fullscreen || m_state.maximized == MAX_FULL) 538 if (m_state.fullscreen || m_state.maximized == MAX_FULL)
539 return; 539 return;
540 540
541 m_state.x = x(); 541 if (!(m_state.maximized & MAX_HORZ)) {
542 m_state.y = y(); 542 m_state.x = x();
543 if (!(m_state.maximized & MAX_HORZ))
544 m_state.width = width(); 543 m_state.width = width();
545 if (!m_state.shaded && !(m_state.maximized & MAX_VERT)) 544 }
546 m_state.height = height(); 545 if (!(m_state.maximized & MAX_VERT)) {
546 m_state.y = y();
547 if (!m_state.shaded)
548 m_state.height = height();
549 }
547} 550}
548 551
549void FbWinFrame::applyState() { 552void FbWinFrame::applyState() {