$NetBSD$

--- src/Window.cc.orig	2007-09-09 17:46:50.000000000 +0200
+++ src/Window.cc	2007-11-01 13:45:10.824376000 +0100
@@ -185,8 +185,9 @@ void lowerFluxboxWindow(FluxboxWindow &w
         win.screen().layerManager().lock();
 
     // lower the windows from the top down, so they don't change stacking order
-    WinClient::TransientList::const_reverse_iterator it = win.winClient().transientList().rbegin();
-    WinClient::TransientList::const_reverse_iterator it_end = win.winClient().transientList().rend();
+    // XXX: I'd rather use a const_reverse_iterator here, but sunpro has problems with it.
+    WinClient::TransientList::reverse_iterator it = win.winClient().transientList().rbegin();
+    WinClient::TransientList::reverse_iterator it_end = win.winClient().transientList().rend();
     for (; it != it_end; ++it) {
         if ((*it)->fbwindow() && !(*it)->fbwindow()->isIconic())
             // TODO: should we also check if it is the active client?
