Updating branch refs/heads/master
to 69b42a49bf034023603aab9845cfd5c13be7740a (commit)
from 0d6cb9b976e99b6c9208308b9f7ae6b8a59ef225 (commit)
commit 69b42a49bf034023603aab9845cfd5c13be7740a
Author: Lionel Le Folgoc <[email protected]>
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
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits