[Xfce4-commits] <xfce4-settings:master> Initialize the sizes before using them

Nick Schermer noreply at xfce.org
Sat Aug 28 23:02:19 CEST 2010


Updating branch refs/heads/master
         to 69b42a49bf034023603aab9845cfd5c13be7740a (commit)
       from 0d6cb9b976e99b6c9208308b9f7ae6b8a59ef225 (commit)

commit 69b42a49bf034023603aab9845cfd5c13be7740a
Author: Lionel Le Folgoc <mrpouit at 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);



More information about the Xfce4-commits mailing list