summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-04-02 23:13:38 (GMT)
committerfluxgen <fluxgen>2002-04-02 23:13:38 (GMT)
commit0dfac0a9997e8bd9ba51b003ee7666202eaa5bbf (patch)
treec53b24c1a805867cf16119679bd9e8f47c2a0934 /src
parent81fb2b9fb6dadca689cf3d553fd7de5937a4509a (diff)
downloadfluxbox_lack-0dfac0a9997e8bd9ba51b003ee7666202eaa5bbf.zip
fluxbox_lack-0dfac0a9997e8bd9ba51b003ee7666202eaa5bbf.tar.bz2
signed/unsigned fixes
Diffstat (limited to 'src')
-rw-r--r--src/fluxbox.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 5ba27b4..aa53087 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.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: fluxbox.cc,v 1.42 2002/03/19 14:30:43 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.43 2002/04/02 23:13:38 fluxgen Exp $
26 26
27//Use some GNU extensions 27//Use some GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -1094,7 +1094,7 @@ void Fluxbox::handleClientMessage(XClientMessageEvent &ce) {
1094 BScreen *screen = searchScreen(ce.window); 1094 BScreen *screen = searchScreen(ce.window);
1095 1095
1096 if (screen && ce.data.l[0] >= 0 && 1096 if (screen && ce.data.l[0] >= 0 &&
1097 ce.data.l[0] < screen->getCount()) 1097 ce.data.l[0] < (signed)screen->getCount())
1098 screen->changeWorkspaceID(ce.data.l[0]); 1098 screen->changeWorkspaceID(ce.data.l[0]);
1099 1099
1100 } else if (ce.message_type == getFluxboxChangeWindowFocusAtom()) { 1100 } else if (ce.message_type == getFluxboxChangeWindowFocusAtom()) {
@@ -1453,12 +1453,12 @@ bool Fluxbox::checkGnomeAtoms(XClientMessageEvent &ce) {
1453 #endif//!DEBUG 1453 #endif//!DEBUG
1454 if ( win !=0 && // the message sent to client window? 1454 if ( win !=0 && // the message sent to client window?
1455 win->getScreen() && ce.data.l[0] >= 0 && 1455 win->getScreen() && ce.data.l[0] >= 0 &&
1456 ce.data.l[0] < win->getScreen()->getCount()) { 1456 ce.data.l[0] < (signed)win->getScreen()->getCount()) {
1457 win->getScreen()->changeWorkspaceID(ce.data.l[0]); 1457 win->getScreen()->changeWorkspaceID(ce.data.l[0]);
1458 1458
1459 } else if (screen!=0 && //the message sent to root window? 1459 } else if (screen!=0 && //the message sent to root window?
1460 ce.data.l[0] >= 0 && 1460 ce.data.l[0] >= 0 &&
1461 ce.data.l[0] < screen->getCount()) 1461 ce.data.l[0] < (signed)screen->getCount())
1462 screen->changeWorkspaceID(ce.data.l[0]); 1462 screen->changeWorkspaceID(ce.data.l[0]);
1463 return true; 1463 return true;
1464 } else if (win) { 1464 } else if (win) {
@@ -1962,7 +1962,7 @@ void Fluxbox::save_rc(void) {
1962 sprintf(rc_string, "session.screen%d.workspaceNames: ", screen_number); 1962 sprintf(rc_string, "session.screen%d.workspaceNames: ", screen_number);
1963 string workspaces_string(rc_string); 1963 string workspaces_string(rc_string);
1964 1964
1965 for (int workspace=0; workspace < screen->getCount(); workspace++) { 1965 for (unsigned int workspace=0; workspace < screen->getCount(); workspace++) {
1966 if (screen->getWorkspace(workspace)->getName()!=0) 1966 if (screen->getWorkspace(workspace)->getName()!=0)
1967 workspaces_string.append(screen->getWorkspace(workspace)->getName()); 1967 workspaces_string.append(screen->getWorkspace(workspace)->getName());
1968 else 1968 else