bugfix: when maximizing a shaded window, unshade it before

This commit is contained in:
Mathias Gumz 2010-05-06 20:54:44 +02:00
parent 22fa5f544b
commit 5be5edc1e5

View file

@ -1500,6 +1500,12 @@ void FluxboxWindow::setMaximizedState(int type) {
if (isResizing())
stopResizing();
if (isShaded()) {
// do not call ::shade() here to trigger frame().applyState() and
// stateSig().notfiy() only once
m_state.shaded = false;
}
m_state.maximized = type;
frame().applyState();