all repos — fluxbox @ b7e31755bee91133fe512040e9d1650a1e410048

custom fork of the fluxbox windowmanager

Bool to bool
fluxgen fluxgen
commit

b7e31755bee91133fe512040e9d1650a1e410048

parent

4842c8632f627182881c689e7f013f1388b9f391

2 files changed, 15 insertions(+), 7 deletions(-)

jump to
M src/Workspace.ccsrc/Workspace.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspace.cc,v 1.10 2002/02/10 19:05:12 fluxgen Exp $ +// $Id: Workspace.cc,v 1.11 2002/02/16 11:28:16 fluxgen Exp $ // use GNU extensions #ifndef _GNU_SOURCE

@@ -57,6 +57,11 @@

#include <algorithm> #include <iostream> using namespace std; + +#ifdef DEBUG +#include <iostream> +using namespace std; +#endif Workspace::Workspace(BScreen *scrn, int i): screen(scrn),

@@ -295,12 +300,12 @@ screen->getToolbar()->redrawWindowLabel(True);

} -Bool Workspace::isCurrent(void) { +bool Workspace::isCurrent(void) { return (id == screen->getCurrentWorkspaceID()); } -Bool Workspace::isLastWindow(FluxboxWindow *w) { +bool Workspace::isLastWindow(FluxboxWindow *w) { return (w == windowList.back()); }

@@ -332,14 +337,17 @@ clientmenu->setLabel(name.c_str());

clientmenu->update(); } - +//------------ shutdown --------- +// Calles restore on all windows +// in the workspace and then +// clears the windowList +//------------------------------- void Workspace::shutdown(void) { while (!windowList.empty()) { windowList.back()->restore(); delete windowList.back(); //delete window (the window removes it self from windowList) } - }
M src/Workspace.hhsrc/Workspace.hh

@@ -71,8 +71,8 @@ inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; }

FluxboxWindow *getWindow(int); - Bool isCurrent(void); - Bool isLastWindow(FluxboxWindow *); + bool isCurrent(void); + bool isLastWindow(FluxboxWindow *); const int addWindow(FluxboxWindow *, Bool = False); const int removeWindow(FluxboxWindow *);