[Xfce4-commits] r29276 - in xfwm4/trunk: . src

Olivier Fourdan olivier at xfce.org
Sun Jan 18 22:51:47 CET 2009


Author: olivier
Date: 2009-01-18 21:51:46 +0000 (Sun, 18 Jan 2009)
New Revision: 29276

Modified:
   xfwm4/trunk/ChangeLog
   xfwm4/trunk/src/screen.c
Log:
	* src/screen.c: Use G_MAXINT as default to make sure it's off bound.

Modified: xfwm4/trunk/ChangeLog
===================================================================
--- xfwm4/trunk/ChangeLog	2009-01-18 21:45:33 UTC (rev 29275)
+++ xfwm4/trunk/ChangeLog	2009-01-18 21:51:46 UTC (rev 29276)
@@ -1,5 +1,9 @@
 2009-01-18	olivier
 
+	* src/screen.c: Use G_MAXINT as default to make sure it's off bound.
+
+2009-01-18	olivier
+
 	* src/*.c, src/*.h: Update year.
 
 2009-01-18	olivier

Modified: xfwm4/trunk/src/screen.c
===================================================================
--- xfwm4/trunk/src/screen.c	2009-01-18 21:45:33 UTC (rev 29275)
+++ xfwm4/trunk/src/screen.c	2009-01-18 21:51:46 UTC (rev 29276)
@@ -569,10 +569,10 @@
 {
     g_return_if_fail (screen_info != NULL);
 
-    screen_info->cache_monitor.x = -1;
-    screen_info->cache_monitor.y = -1;
-    screen_info->cache_monitor.width = -1;
-    screen_info->cache_monitor.height = -1;
+    screen_info->cache_monitor.x = G_MAXINT;
+    screen_info->cache_monitor.y = G_MAXINT;
+    screen_info->cache_monitor.width = 0;
+    screen_info->cache_monitor.height = 0;
 }
 
 /*
@@ -584,7 +584,7 @@
 {
     gint dx, dy, center_x, center_y, num_monitors, i;
     guint32 distsquare, min_distsquare;
-    GdkRectangle monitor, nearest_monitor = { 0, 0, 0, 0 };
+    GdkRectangle monitor, nearest_monitor = { G_MAXINT, G_MAXINT, 0, 0 };
 
     g_return_if_fail (screen_info != NULL);
     g_return_if_fail (rect != NULL);




More information about the Xfce4-commits mailing list