summaryrefslogtreecommitdiff
path: root/wm/fluxbox/patches/patch-bd
blob: 6640ff4274c268f18e0eedd75cab5224e436fd37 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$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<signed>(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<unsigned int>(delta))
         changeWorkspaceID(currentWorkspaceID()-delta);
 }