summaryrefslogtreecommitdiff
path: root/wm/fluxbox/patches/patch-be
diff options
context:
space:
mode:
Diffstat (limited to 'wm/fluxbox/patches/patch-be')
-rw-r--r--wm/fluxbox/patches/patch-be25
1 files changed, 25 insertions, 0 deletions
diff --git a/wm/fluxbox/patches/patch-be b/wm/fluxbox/patches/patch-be
new file mode 100644
index 00000000000..49b242dd421
--- /dev/null
+++ b/wm/fluxbox/patches/patch-be
@@ -0,0 +1,25 @@
+$NetBSD: patch-be,v 1.1 2007/11/01 13:08:06 rillig Exp $
+
+sunpro couldn't resolve "find" without the prefix. Maybe there is some
+method of that name?
+
+--- src/Workspace.cc.orig 2007-03-19 20:57:09.000000000 +0100
++++ src/Workspace.cc 2007-10-31 01:05:46.195938000 +0100
+@@ -167,7 +167,7 @@ Workspace::~Workspace() {
+
+ void Workspace::addWindow(FluxboxWindow &w, bool place) {
+ // we don't need to add a window that already exist in our list
+- if (find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end())
++ if (std::find(m_windowlist.begin(), m_windowlist.end(), &w) != m_windowlist.end())
+ return;
+
+ w.setWorkspace(m_id);
+@@ -207,7 +207,7 @@ int Workspace::removeWindow(FluxboxWindo
+ FocusControl::unfocusWindow(w->winClient(), true, true);
+
+ // we don't remove it from the layermanager, as it may be being moved
+- Windows::iterator erase_it = remove(m_windowlist.begin(),
++ Windows::iterator erase_it = std::remove(m_windowlist.begin(),
+ m_windowlist.end(), w);
+ if (erase_it != m_windowlist.end())
+ m_windowlist.erase(erase_it);