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

commit b14a75782ad692fb1c25462e671144d234a3bfcc
Author: Lionel Le Folgoc <mrpo...@gmail.com>
Date:   Sun Jun 6 01:30:52 2010 +0200

    Initialize the sizes before using them
    
    … otherwise the screens do not get the size we expect. :)

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

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index e592598..98b29ec 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -213,6 +213,9 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper 
*helper,
         return;
     }
 
+    /* init them before starting */
+    mm_width = mm_height = width = height = 0;
+
     /* get the number of outputs */
     g_snprintf (property, sizeof (property), "/%s/NumOutputs", scheme);
     num_outputs = xfconf_channel_get_int (helper->channel, property, 0);
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to