projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5802cf6
)
remaximize windows when the strut changes
author
Dana Jansens
<danakj@orodu.net>
Sat, 1 Feb 2003 12:25:24 +0000
(12:25 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 1 Feb 2003 12:25:24 +0000
(12:25 +0000)
src/screen.cc
patch
|
blob
|
history
diff --git
a/src/screen.cc
b/src/screen.cc
index de1927b6ab7d037bdaf4d2ab8a89237d8e2103cf..40f143a13539fe694610beb52733fa67c27bb734 100644
(file)
--- a/
src/screen.cc
+++ b/
src/screen.cc
@@
-208,6
+208,7
@@
void Screen::manageExisting()
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
@@
void Screen::updateStrut()
_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();
+ }
}