stacking list on root is bottom to top
This commit is contained in:
parent
3e82959514
commit
8eed9d643c
1 changed files with 6 additions and 6 deletions
|
@ -409,14 +409,14 @@ void Screen::changeStackingList()
|
||||||
assert(size == clients.size()); // just making sure.. :)
|
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) {
|
if (size > 0) {
|
||||||
Window *win_it;
|
Window *win_it;
|
||||||
|
|
||||||
windows = new Window[size];
|
windows = new Window[size];
|
||||||
win_it = windows;
|
win_it = windows;
|
||||||
Client::List::const_iterator it = _stacking.begin();
|
Client::List::const_reverse_iterator it = _stacking.rbegin();
|
||||||
const Client::List::const_iterator end = _stacking.end();
|
const Client::List::const_reverse_iterator end = _stacking.rend();
|
||||||
for (; it != end; ++it, ++win_it)
|
for (; it != end; ++it, ++win_it)
|
||||||
*win_it = (*it)->window();
|
*win_it = (*it)->window();
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue