From: Dana Jansens Date: Fri, 28 Jun 2002 04:27:49 +0000 (+0000) Subject: proper order for the stacking order list X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b0d81f77aa57a33f6c9e6428ffe89f7cc02258ed;p=chaz%2Fopenbox proper order for the stacking order list --- diff --git a/src/Workspace.cc b/src/Workspace.cc index 309ea950..60efba1e 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -381,8 +381,8 @@ unsigned int Workspace::getCount(void) const { void Workspace::appendStackOrder(BlackboxWindowList &stack_order) const { - BlackboxWindowList::const_iterator it = stackingList.begin(); - const BlackboxWindowList::const_iterator end = stackingList.end(); + BlackboxWindowList::const_reverse_iterator it = stackingList.rbegin(); + const BlackboxWindowList::const_reverse_iterator end = stackingList.rend(); for (; it != end; ++it) stack_order.push_back(*it); }