bugfix: when maximizing a shaded window, unshade it before
This commit is contained in:
parent
22fa5f544b
commit
5be5edc1e5
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue