all repos — openbox @ 83bfa01b0bf361d4a2354e5ef0f48ed759e0eab3

openbox fork - make it a bit more like ryudo

remaximize windows when the strut changes
Dana Jansens danakj@orodu.net
commit

83bfa01b0bf361d4a2354e5ef0f48ed759e0eab3

parent

5802cf6109b720b8f7fa90e2c342b9dc202a6d9b

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M src/screen.ccsrc/screen.cc

@@ -208,6 +208,7 @@

void Screen::updateStrut() { + otk::Strut old = _strut; _strut.left = _strut.right = _strut.top = _strut.bottom = 0; Client::List::iterator it, end = clients.end();

@@ -219,6 +220,12 @@ _strut.top = std::max(_strut.top, s.top);

_strut.bottom = std::max(_strut.bottom, s.bottom); } calcArea(); + + if (!(old == _strut)) { + // the strut has changed, adjust all the maximized windows + for (it = clients.begin(); it != end; ++it) + (*it)->remaximize(); + } }