summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-16 01:54:51 +0000
committerDana Jansens <danakj@orodu.net>2003-01-16 01:54:51 +0000
commit8eed9d643c9cde6cba0c948aa5fa6756ed1b5d97 (patch)
tree6f351bbab29a91f97d85a083056caf4c0146dcb9
parent3e82959514b2f638fcdc153496cc298075b7be9a (diff)
stacking list on root is bottom to top
-rw-r--r--src/screen.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/screen.cc b/src/screen.cc
index 6158243a..c4dfe8fc 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -409,23 +409,23 @@ void Screen::changeStackingList()
assert(size == clients.size()); // just making sure.. :)
- // create an array of the window ids
+ // create an array of the window ids (from bottom to top, reverse order!)
if (size > 0) {
Window *win_it;
windows = new Window[size];
win_it = windows;
- Client::List::const_iterator it = _stacking.begin();
- const Client::List::const_iterator end = _stacking.end();
+ Client::List::const_reverse_iterator it = _stacking.rbegin();
+ const Client::List::const_reverse_iterator end = _stacking.rend();
for (; it != end; ++it, ++win_it)
*win_it = (*it)->window();
} else
windows = (Window*) 0;
openbox->property()->set(_info->rootWindow(),
- otk::Property::net_client_list_stacking,
- otk::Property::Atom_Window,
- windows, size);
+ otk::Property::net_client_list_stacking,
+ otk::Property::Atom_Window,
+ windows, size);
if (size)
delete [] windows;