summaryrefslogtreecommitdiff
path: root/wm/blackbox70/patches/patch-src_Screen.cc
blob: f1197d32f65c49a4e1be1a9c4d2728b4238a8adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-src_Screen.cc,v 1.1 2018/10/12 18:00:55 he Exp $

Sunpro has problems with a non-const const_reverse_iterator.

--- src/Screen.cc.orig	2016-07-10 16:31:38.000000000 +0000
+++ src/Screen.cc
@@ -616,8 +616,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)