Updating branch refs/heads/xrandr-display-settings to 4c0b06462c4e28feb6ab04c9f74226ee947a9c81 (commit) from 8e17715cf8074a03ec5ff9d7371ddb6e12d3b3b8 (commit)
commit 4c0b06462c4e28feb6ab04c9f74226ee947a9c81 Author: Lionel Le Folgoc <mrpo...@gmail.com> Date: Tue Jun 8 22:13:30 2010 +0200 If the output is rotated (90 or 270°), switch height and width xfce4-settings-helper/displays.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c index 4c00d51..91777b6 100644 --- a/xfce4-settings-helper/displays.c +++ b/xfce4-settings-helper/displays.c @@ -357,8 +357,16 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper, mm_height += output_info->mm_height; /* get the sizes of the mode to enforce */ - width += resources->modes[j].width; - height += resources->modes[j].height; + if (rot == RR_Rotate_0 || rot == RR_Rotate_180) + { + width += resources->modes[j].width; + height += resources->modes[j].height; + } + else + { + height += resources->modes[j].width; + width += resources->modes[j].height; + } if (XRRSetCrtcConfig (xdisplay, resources, output_info->crtc, crtc_info->timestamp, crtc_info->x, crtc_info->y, _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits