aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-05-06 18:54:44 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-05-06 18:54:44 (GMT)
commit5be5edc1e5760672f11517b8b4c447346157c175 (patch)
tree5afc8c032f7d42dc0090179728c3b36f0d96f147 /src
parent22fa5f544b35b5022769e0d244a3b7ec13f0e8c5 (diff)
downloadfluxbox_paul-5be5edc1e5760672f11517b8b4c447346157c175.zip
fluxbox_paul-5be5edc1e5760672f11517b8b4c447346157c175.tar.bz2
bugfix: when maximizing a shaded window, unshade it before
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 9df48a2..56cbd96 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1500,6 +1500,12 @@ void FluxboxWindow::setMaximizedState(int type) {
1500 if (isResizing()) 1500 if (isResizing())
1501 stopResizing(); 1501 stopResizing();
1502 1502
1503 if (isShaded()) {
1504 // do not call ::shade() here to trigger frame().applyState() and
1505 // stateSig().notfiy() only once
1506 m_state.shaded = false;
1507 }
1508
1503 m_state.maximized = type; 1509 m_state.maximized = type;
1504 frame().applyState(); 1510 frame().applyState();
1505 1511