diff options
author | fluxgen <fluxgen> | 2002-02-16 11:28:16 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-02-16 11:28:16 (GMT) |
commit | b7e31755bee91133fe512040e9d1650a1e410048 (patch) | |
tree | 619fbf7ca869d686e5b133aebabd8bc062f8c429 /src/Workspace.cc | |
parent | 4842c8632f627182881c689e7f013f1388b9f391 (diff) | |
download | fluxbox-b7e31755bee91133fe512040e9d1650a1e410048.zip fluxbox-b7e31755bee91133fe512040e9d1650a1e410048.tar.bz2 |
Bool to bool
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r-- | src/Workspace.cc | 18 |
1 files changed, 13 insertions, 5 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 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Workspace.cc,v 1.10 2002/02/10 19:05:12 fluxgen Exp $ | 25 | // $Id: Workspace.cc,v 1.11 2002/02/16 11:28:16 fluxgen Exp $ |
26 | 26 | ||
27 | // use GNU extensions | 27 | // use GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -58,6 +58,11 @@ | |||
58 | #include <iostream> | 58 | #include <iostream> |
59 | using namespace std; | 59 | using namespace std; |
60 | 60 | ||
61 | #ifdef DEBUG | ||
62 | #include <iostream> | ||
63 | using namespace std; | ||
64 | #endif | ||
65 | |||
61 | Workspace::Workspace(BScreen *scrn, int i): | 66 | Workspace::Workspace(BScreen *scrn, int i): |
62 | screen(scrn), | 67 | screen(scrn), |
63 | lastfocus(0), | 68 | lastfocus(0), |
@@ -295,12 +300,12 @@ void Workspace::update(void) { | |||
295 | } | 300 | } |
296 | 301 | ||
297 | 302 | ||
298 | Bool Workspace::isCurrent(void) { | 303 | bool Workspace::isCurrent(void) { |
299 | return (id == screen->getCurrentWorkspaceID()); | 304 | return (id == screen->getCurrentWorkspaceID()); |
300 | } | 305 | } |
301 | 306 | ||
302 | 307 | ||
303 | Bool Workspace::isLastWindow(FluxboxWindow *w) { | 308 | bool Workspace::isLastWindow(FluxboxWindow *w) { |
304 | return (w == windowList.back()); | 309 | return (w == windowList.back()); |
305 | } | 310 | } |
306 | 311 | ||
@@ -332,14 +337,17 @@ void Workspace::setName(char *new_name) { | |||
332 | clientmenu->update(); | 337 | clientmenu->update(); |
333 | } | 338 | } |
334 | 339 | ||
335 | 340 | //------------ shutdown --------- | |
341 | // Calles restore on all windows | ||
342 | // in the workspace and then | ||
343 | // clears the windowList | ||
344 | //------------------------------- | ||
336 | void Workspace::shutdown(void) { | 345 | void Workspace::shutdown(void) { |
337 | 346 | ||
338 | while (!windowList.empty()) { | 347 | while (!windowList.empty()) { |
339 | windowList.back()->restore(); | 348 | windowList.back()->restore(); |
340 | delete windowList.back(); //delete window (the window removes it self from windowList) | 349 | delete windowList.back(); //delete window (the window removes it self from windowList) |
341 | } | 350 | } |
342 | |||
343 | } | 351 | } |
344 | 352 | ||
345 | 353 | ||