[Xfce4-commits] <xfce4-settings:xrandr-display-settings> Initialize the sizes before using them
Jérôme Guelfucci
noreply at xfce.org
Sun Jun 6 10:00:06 CEST 2010
Updating branch refs/heads/xrandr-display-settings
to b14a75782ad692fb1c25462e671144d234a3bfcc (commit)
from 53a1e94d8acbbff280be008665da81e4a99c1fa4 (commit)
commit b14a75782ad692fb1c25462e671144d234a3bfcc
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