$NetBSD: patch-bd,v 1.1 2007/11/01 13:08:06 rillig Exp $ See patch-be and patch-bf. --- src/Screen.cc.orig 2007-03-19 20:57:09.000000000 +0100 +++ src/Screen.cc 2007-11-01 12:50:05.233133000 +0100 @@ -1032,7 +1032,7 @@ void BScreen::addIcon(FluxboxWindow *w) return; // make sure we have a unique list - if (find(iconList().begin(), iconList().end(), w) != iconList().end()) + if (std::find(iconList().begin(), iconList().end(), w) != iconList().end()) return; m_icon_list.push_back(w); @@ -2013,21 +2013,21 @@ void BScreen::setLayer(FbTk::XLayerItem /** Goes to the workspace "right" of the current */ -void BScreen::nextWorkspace(const int delta) { +void BScreen::nextWorkspace(int delta) { changeWorkspaceID( (currentWorkspaceID() + delta) % numberOfWorkspaces()); } /** Goes to the workspace "left" of the current */ -void BScreen::prevWorkspace(const int delta) { +void BScreen::prevWorkspace(int delta) { changeWorkspaceID( (static_cast(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces()); } /** Goes to the workspace "right" of the current */ -void BScreen::rightWorkspace(const int delta) { +void BScreen::rightWorkspace(int delta) { if (currentWorkspaceID()+delta < numberOfWorkspaces()) changeWorkspaceID(currentWorkspaceID()+delta); } @@ -2035,7 +2035,7 @@ void BScreen::rightWorkspace(const int d /** Goes to the workspace "left" of the current */ -void BScreen::leftWorkspace(const int delta) { +void BScreen::leftWorkspace(int delta) { if (currentWorkspaceID() >= static_cast(delta)) changeWorkspaceID(currentWorkspaceID()-delta); }