summaryrefslogtreecommitdiff
path: root/wm/blackbox70/patches/patch-ac
blob: 4dfe2b0da1c0efb0f4108d566782cad94e138061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ac,v 1.2 2011/11/22 20:02:48 joerg Exp $

Sunpro has problems with a non-const const_reverse_iterator.

--- src/Screen.cc.orig	2005-10-18 08:07:22.000000000 +0000
+++ src/Screen.cc
@@ -47,7 +47,7 @@
 #include <assert.h>
 #include <ctype.h>
 #include <dirent.h>
-
+#include <string.h>
 
 static bool running = true;
 static int anotherWMRunning(Display *, XErrorEvent *) {
@@ -492,8 +492,8 @@ void BScreen::setCurrentWorkspace(unsign
 
     // withdraw windows in reverse order to minimize the number of
     // Expose events
-    StackingList::const_reverse_iterator it = _stackingList.rbegin();
-    const StackingList::const_reverse_iterator end = _stackingList.rend();
+    StackingList::reverse_iterator it = _stackingList.rbegin();
+    const StackingList::reverse_iterator end = _stackingList.rend();
     for (; it != end; ++it) {
       BlackboxWindow *win = dynamic_cast<BlackboxWindow *>(*it);
       if (win && win->workspace() == current_workspace)