From b7e31755bee91133fe512040e9d1650a1e410048 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sat, 16 Feb 2002 11:28:16 +0000
Subject: Bool to bool

---
 src/Workspace.cc | 18 +++++++++++++-----
 src/Workspace.hh |  4 ++--
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/Workspace.cc b/src/Workspace.cc
index 8f0433f..3a2697e 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -22,7 +22,7 @@
 // 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
@@ -58,6 +58,11 @@
 #include <iostream>
 using namespace std;
 
+#ifdef DEBUG
+#include <iostream>
+using namespace std;
+#endif
+
 Workspace::Workspace(BScreen *scrn, int i):
 screen(scrn),
 lastfocus(0),
@@ -295,12 +300,12 @@ void Workspace::update(void) {
 }
 
 
-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 @@ void Workspace::setName(char *new_name) {
 	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)
 	}
-	
 }
 
 
diff --git a/src/Workspace.hh b/src/Workspace.hh
index 08c5ad9..0c76f0c 100644
--- a/src/Workspace.hh
+++ b/src/Workspace.hh
@@ -71,8 +71,8 @@ public:
 
   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 *);
-- 
cgit v0.11.2