aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-23 22:50:09 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-23 22:50:09 (GMT)
commit36d1edfbf608c69528d903bbb798b819056ae903 (patch)
tree9406b334fb3a877e4c713cb8bec306e0244dc84c /src
parent37a602899dc1c6f42076ff64d19a4b378cfa2b8f (diff)
downloadfluxbox-36d1edfbf608c69528d903bbb798b819056ae903.zip
fluxbox-36d1edfbf608c69528d903bbb798b819056ae903.tar.bz2
fix for restoring horizontally or vertically resized windows
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() {