[Xfce4-commits] <xfce4-settings:xrandr-display-settings> Fix improper check of the returned value

Jérôme Guelfucci noreply at xfce.org
Sun Jun 6 10:00:05 CEST 2010


Updating branch refs/heads/xrandr-display-settings
         to 53a1e94d8acbbff280be008665da81e4a99c1fa4 (commit)
       from c53c31f46580f62a39d3f063806e23b1b3485b9c (commit)

commit 53a1e94d8acbbff280be008665da81e4a99c1fa4
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Sun Jun 6 00:32:30 2010 +0200

    Fix improper check of the returned value

 xfce4-settings-helper/displays.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index a682b01..e592598 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -203,8 +203,8 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
     resources = XRRGetScreenResources (xdisplay, GDK_WINDOW_XID (root_window));
 
     /* get the range of screen sizes */
-    if (XRRGetScreenSizeRange (xdisplay, GDK_WINDOW_XID (root_window), &min_width,
-                               &min_height, &max_width, &max_height) != Success)
+    if (!XRRGetScreenSizeRange (xdisplay, GDK_WINDOW_XID (root_window),
+                                &min_width, &min_height, &max_width, &max_height))
     {
         g_warning ("Unable to get the range of screen sizes, aborting.");
         XRRFreeScreenResources (resources);



More information about the Xfce4-commits mailing list