remaximize windows when the strut changes
This commit is contained in:
parent
5802cf6109
commit
83bfa01b0b
1 changed files with 7 additions and 0 deletions
|
@ -208,6 +208,7 @@ void Screen::manageExisting()
|
||||||
|
|
||||||
void Screen::updateStrut()
|
void Screen::updateStrut()
|
||||||
{
|
{
|
||||||
|
otk::Strut old = _strut;
|
||||||
_strut.left = _strut.right = _strut.top = _strut.bottom = 0;
|
_strut.left = _strut.right = _strut.top = _strut.bottom = 0;
|
||||||
|
|
||||||
Client::List::iterator it, end = clients.end();
|
Client::List::iterator it, end = clients.end();
|
||||||
|
@ -219,6 +220,12 @@ void Screen::updateStrut()
|
||||||
_strut.bottom = std::max(_strut.bottom, s.bottom);
|
_strut.bottom = std::max(_strut.bottom, s.bottom);
|
||||||
}
|
}
|
||||||
calcArea();
|
calcArea();
|
||||||
|
|
||||||
|
if (!(old == _strut)) {
|
||||||
|
// the strut has changed, adjust all the maximized windows
|
||||||
|
for (it = clients.begin(); it != end; ++it)
|
||||||
|
(*it)->remaximize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue