diff options
author | fluxgen <fluxgen> | 2002-03-23 15:14:45 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-03-23 15:14:45 (GMT) |
commit | 8daa080d11a6bf9e6ed208563e738a02c9eb6cf8 (patch) | |
tree | 4d9f68180a4bc0f1574f03b48897233b43791899 /src/Workspace.cc | |
parent | e133cf83a332a72ca42be5e223834d4e6aa0a2e8 (diff) | |
download | fluxbox_lack-8daa080d11a6bf9e6ed208563e738a02c9eb6cf8.zip fluxbox_lack-8daa080d11a6bf9e6ed208563e738a02c9eb6cf8.tar.bz2 |
some signed/unsigned stuff
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r-- | src/Workspace.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index 85bd2aa..ff6140d 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.13 2002/03/19 14:30:43 fluxgen Exp $ | 25 | // $Id: Workspace.cc,v 1.14 2002/03/23 15:14:45 fluxgen Exp $ |
26 | 26 | ||
27 | // use GNU extensions | 27 | // use GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -63,7 +63,7 @@ using namespace std; | |||
63 | using namespace std; | 63 | using namespace std; |
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | Workspace::Workspace(BScreen *scrn, int i): | 66 | Workspace::Workspace(BScreen *scrn, unsigned int i): |
67 | screen(scrn), | 67 | screen(scrn), |
68 | lastfocus(0), | 68 | lastfocus(0), |
69 | name(""), | 69 | name(""), |
@@ -87,7 +87,7 @@ Workspace::~Workspace() { | |||
87 | } | 87 | } |
88 | 88 | ||
89 | 89 | ||
90 | const int Workspace::addWindow(FluxboxWindow *w, Bool place) { | 90 | const int Workspace::addWindow(FluxboxWindow *w, bool place) { |
91 | if (! w) | 91 | if (! w) |
92 | return -1; | 92 | return -1; |
93 | 93 | ||
@@ -100,7 +100,7 @@ const int Workspace::addWindow(FluxboxWindow *w, Bool place) { | |||
100 | stackingList.push_front(w); | 100 | stackingList.push_front(w); |
101 | windowList.push_back(w); | 101 | windowList.push_back(w); |
102 | 102 | ||
103 | clientmenu->insert((const char **) w->getTitle()); | 103 | clientmenu->insert(w->getTitle()); |
104 | clientmenu->update(); | 104 | clientmenu->update(); |
105 | 105 | ||
106 | screen->updateNetizenWindowAdd(w->getClientWindow(), id); | 106 | screen->updateNetizenWindowAdd(w->getClientWindow(), id); |
@@ -286,11 +286,11 @@ void Workspace::reconfigure(void) { | |||
286 | } | 286 | } |
287 | 287 | ||
288 | 288 | ||
289 | FluxboxWindow *Workspace::getWindow(int index) { | 289 | FluxboxWindow *Workspace::getWindow(unsigned int index) { |
290 | if ((index >= 0) && (index < windowList.size())) | 290 | if (index < windowList.size()) |
291 | return windowList[index]; | 291 | return windowList[index]; |
292 | else | 292 | |
293 | return 0; | 293 | return 0; |
294 | } | 294 | } |
295 | 295 | ||
296 | 296 | ||