aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-23 14:46:16 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-23 14:46:16 (GMT)
commite6b11e06c67d0c7987410097b62f730dcd88db3a (patch)
treeb530379b8bef0f394d587d7c767debad9a14c0c6 /src/FbWinFrame.cc
parent10f769f7fc1766a647a063f4204d7c5b0b0e45ba (diff)
downloadfluxbox_pavel-e6b11e06c67d0c7987410097b62f730dcd88db3a.zip
fluxbox_pavel-e6b11e06c67d0c7987410097b62f730dcd88db3a.tar.bz2
resize maximized windows when the toolbar or slit changes size
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 1f0a52e..4533fa6 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -198,8 +198,6 @@ void FbWinFrame::shade() {
198 return; 198 return;
199 199
200 // toggle shade 200 // toggle shade
201 if (!m_state.shaded)
202 saveGeometry();
203 m_state.shaded = !m_state.shaded; 201 m_state.shaded = !m_state.shaded;
204 applyState(); 202 applyState();
205} 203}
@@ -256,6 +254,8 @@ void FbWinFrame::moveResize(int x, int y, unsigned int width, unsigned int heigh
256 m_window.resize(width, height); 254 m_window.resize(width, height);
257 } 255 }
258 256
257 saveGeometry();
258
259 if (move || (resize && m_screen.getTabPlacement() != TOPLEFT && 259 if (move || (resize && m_screen.getTabPlacement() != TOPLEFT &&
260 m_screen.getTabPlacement() != LEFTTOP)) 260 m_screen.getTabPlacement() != LEFTTOP))
261 alignTabs(); 261 alignTabs();
@@ -283,6 +283,7 @@ void FbWinFrame::moveResize(int x, int y, unsigned int width, unsigned int heigh
283void FbWinFrame::quietMoveResize(int x, int y, 283void FbWinFrame::quietMoveResize(int x, int y,
284 unsigned int width, unsigned int height) { 284 unsigned int width, unsigned int height) {
285 m_window.moveResize(x, y, width, height); 285 m_window.moveResize(x, y, width, height);
286 saveGeometry();
286 if (m_tabmode == EXTERNAL) { 287 if (m_tabmode == EXTERNAL) {
287 288
288 switch(m_screen.getTabPlacement()) { 289 switch(m_screen.getTabPlacement()) {
@@ -521,7 +522,6 @@ void FbWinFrame::setFullscreen(bool newvalue) {
521 if (newvalue == m_state.fullscreen) 522 if (newvalue == m_state.fullscreen)
522 return; 523 return;
523 524
524 saveGeometry();
525 m_state.fullscreen = newvalue; 525 m_state.fullscreen = newvalue;
526 applyState(); 526 applyState();
527} 527}
@@ -530,7 +530,6 @@ void FbWinFrame::setMaximized(int value) {
530 if (value == m_state.maximized) 530 if (value == m_state.maximized)
531 return; 531 return;
532 532
533 saveGeometry();
534 m_state.maximized = value; 533 m_state.maximized = value;
535 applyState(); 534 applyState();
536} 535}