Keep 'maximum/fullscreen' when moving a window between different heads

This commit is contained in:
Michal Zime 2009-11-23 21:11:04 +01:00 committed by Mathias Gumz
parent 8def80cec3
commit 69d80c5905
2 changed files with 19 additions and 0 deletions

View file

@ -1,6 +1,11 @@
(Format: Year/Month/Day)
Changes for 1.1.2
*09/11/23:
* Keep 'maximized/fullscreen' state when changing the current head of a
window (thanks Michal Zimen)
Window.cc
*09/10/03:
* Build system cleanup: Check for extension headers (Mathias)
autogen.sh configure.in, removed 'missing' file

View file

@ -2884,6 +2884,13 @@ void FluxboxWindow::stopMoving(bool interrupted) {
ungrabPointer(CurrentTime);
FbTk::App::instance()->sync(false); //make sure the redraw is made before we continue
// if Head has been changed we want it to redraw by current state
if (m_state.maximized || m_state.fullscreen) {
frame().applyState();
attachWorkAreaSig();
stateSig().notify();
}
}
/**
@ -3767,6 +3774,13 @@ void FluxboxWindow::setOnHead(int head) {
screen().getHeadY(head) + frame().y() - screen().getHeadY(cur));
m_placed = placed;
}
// if Head has been changed we want it to redraw by current state
if (m_state.maximized || m_state.fullscreen) {
frame().applyState();
attachWorkAreaSig();
stateSig().notify();
}
}
void FluxboxWindow::placeWindow(int head) {