Bool to bool
This commit is contained in:
parent
4842c8632f
commit
b7e31755be
2 changed files with 15 additions and 7 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
// use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -58,6 +58,11 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
#endif
|
||||||
|
|
||||||
Workspace::Workspace(BScreen *scrn, int i):
|
Workspace::Workspace(BScreen *scrn, int i):
|
||||||
screen(scrn),
|
screen(scrn),
|
||||||
lastfocus(0),
|
lastfocus(0),
|
||||||
|
@ -295,12 +300,12 @@ void Workspace::update(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Bool Workspace::isCurrent(void) {
|
bool Workspace::isCurrent(void) {
|
||||||
return (id == screen->getCurrentWorkspaceID());
|
return (id == screen->getCurrentWorkspaceID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Bool Workspace::isLastWindow(FluxboxWindow *w) {
|
bool Workspace::isLastWindow(FluxboxWindow *w) {
|
||||||
return (w == windowList.back());
|
return (w == windowList.back());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -332,14 +337,17 @@ void Workspace::setName(char *new_name) {
|
||||||
clientmenu->update();
|
clientmenu->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------ shutdown ---------
|
||||||
|
// Calles restore on all windows
|
||||||
|
// in the workspace and then
|
||||||
|
// clears the windowList
|
||||||
|
//-------------------------------
|
||||||
void Workspace::shutdown(void) {
|
void Workspace::shutdown(void) {
|
||||||
|
|
||||||
while (!windowList.empty()) {
|
while (!windowList.empty()) {
|
||||||
windowList.back()->restore();
|
windowList.back()->restore();
|
||||||
delete windowList.back(); //delete window (the window removes it self from windowList)
|
delete windowList.back(); //delete window (the window removes it self from windowList)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,8 @@ public:
|
||||||
|
|
||||||
FluxboxWindow *getWindow(int);
|
FluxboxWindow *getWindow(int);
|
||||||
|
|
||||||
Bool isCurrent(void);
|
bool isCurrent(void);
|
||||||
Bool isLastWindow(FluxboxWindow *);
|
bool isLastWindow(FluxboxWindow *);
|
||||||
|
|
||||||
const int addWindow(FluxboxWindow *, Bool = False);
|
const int addWindow(FluxboxWindow *, Bool = False);
|
||||||
const int removeWindow(FluxboxWindow *);
|
const int removeWindow(FluxboxWindow *);
|
||||||
|
|
Loading…
Reference in a new issue