summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-05 00:18:32 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-05 00:18:32 +0800
commitda75fba9478b5fd7461ae31500f95bb21227c412 (patch)
tree29f79b493fe057c2ae49e56e296ac6aa3f5a3833 /src/screen.cpp
parent55d8c5b16aed34a04b3405e0a63575b9002612b2 (diff)
downloadunity-window-decorator-da75fba9478b5fd7461ae31500f95bb21227c412.tar.gz
unity-window-decorator-da75fba9478b5fd7461ae31500f95bb21227c412.tar.bz2
Fix typo and fix more warnings
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index d9d2731..cb40573 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -2273,10 +2273,12 @@ PrivateScreen::getDesktopHints ()
{
memcpy (data, propData, sizeof (unsigned long) * 2);
- if (data[0] / screen->width () < vpSize.width () - 1)
+ if (data[0] / (unsigned int) screen->width () <
+ (unsigned int) vpSize.width () - 1)
vp.setX (data[0] / screen->width ());
- if (data[1] / screen->height () < vpSize.height () - 1)
+ if (data[1] / (unsigned int) screen->height () <
+ (unsigned int) vpSize.height () - 1)
vp.setY (data[1] / screen->height ());
}
@@ -3203,7 +3205,7 @@ PrivateScreen::updateClientList ()
if (n == 0)
{
- if (n != priv->clientList.size ())
+ if ((unsigned int) n != priv->clientList.size ())
{
priv->clientList.clear ();
priv->clientListStacking.clear ();
@@ -3223,7 +3225,7 @@ PrivateScreen::updateClientList ()
return;
}
- if (n != priv->clientList.size ())
+ if ((unsigned int) n != priv->clientList.size ())
{
priv->clientIdList.resize (n);
priv->clientIdListStacking.resize (n);