X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.cc;h=619b520548e8f6b6e12e7b4fd775ae04f91f2526;hb=ae093dba2fb97124bb4af3eaf4070b46f07dfd74;hp=41a09324ab4ab687d7971ab1f5668306e63278fa;hpb=f00ed578baacb73a36227fed1419e9d451ee7bb0;p=chaz%2Fopenbox diff --git a/src/Workspace.cc b/src/Workspace.cc index 41a09324..619b5205 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -81,7 +81,7 @@ Workspace::~Workspace(void) { } -const int Workspace::addWindow(OpenboxWindow *w, Bool place) { +int Workspace::addWindow(OpenboxWindow *w, bool place) { if (! w) return -1; if (place) placeWindow(*w); @@ -103,7 +103,7 @@ const int Workspace::addWindow(OpenboxWindow *w, Bool place) { } -const int Workspace::removeWindow(OpenboxWindow *w) { +int Workspace::removeWindow(OpenboxWindow *w) { if (! w) return -1; _zorder.remove(w); @@ -190,7 +190,7 @@ void Workspace::raiseWindow(OpenboxWindow *w) { Workspace *wkspc; win = bottom; - while (True) { + while (true) { *(curr++) = win->getFrameWindow(); screen.updateNetizenWindowRaise(win->getClientWindow()); @@ -229,7 +229,7 @@ void Workspace::lowerWindow(OpenboxWindow *w) { Window *nstack = new Window[i], *curr = nstack; Workspace *wkspc; - while (True) { + while (true) { *(curr++) = win->getFrameWindow(); screen.updateNetizenWindowLower(win->getClientWindow()); @@ -267,25 +267,25 @@ void Workspace::reconfigure(void) { OpenboxWindow *Workspace::getWindow(int index) { - if ((index >= 0) && (index < _windows.size())) + if ((index >= 0) && (index < (signed)_windows.size())) return _windows[index]; else return (OpenboxWindow *) 0; } -const int Workspace::getCount(void) { - return _windows.size(); +int Workspace::getCount(void) { + return (signed)_windows.size(); } void Workspace::update(void) { clientmenu->update(); - screen.getToolbar()->redrawWindowLabel(True); + screen.getToolbar()->redrawWindowLabel(true); } -Bool Workspace::isCurrent(void) { +bool Workspace::isCurrent(void) { return (id == screen.getCurrentWorkspaceID()); }