[Xfce4-commits] <xfce4-settings:bluesabre/display-settings> Recompute dimensions even if the mode hasn't changed

Nick Schermer noreply at xfce.org
Mon Dec 9 12:57:20 CET 2013


Updating branch refs/heads/bluesabre/display-settings
         to 0de6f94cf852014bfde94eac9999903bf9f43995 (commit)
       from e8be92f29a55eb71168a1c26d94e4a326166664a (commit)

commit 0de6f94cf852014bfde94eac9999903bf9f43995
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date:   Thu Oct 18 13:06:39 2012 +0200

    Recompute dimensions even if the mode hasn't changed
    
    (because the rotation may have changed)
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>

 xfsettingsd/displays.c |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c
index 8948637..b21b2bc 100644
--- a/xfsettingsd/displays.c
+++ b/xfsettingsd/displays.c
@@ -676,18 +676,18 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
             /* update CRTC mode */
             crtc->mode = valid_mode;
             crtc->changed = TRUE;
+        }
 
-            /* recompute dimensions according to the selected rotation */
-            if ((crtc->rotation & (RR_Rotate_90|RR_Rotate_270)) != 0)
-            {
-                crtc->width = resources->modes[l].height;
-                crtc->height = resources->modes[l].width;
-            }
-            else
-            {
-                crtc->width = resources->modes[l].width;
-                crtc->height = resources->modes[l].height;
-            }
+        /* recompute dimensions according to the selected rotation */
+        if ((crtc->rotation & (RR_Rotate_90|RR_Rotate_270)) != 0)
+        {
+            crtc->width = resources->modes[l].height;
+            crtc->height = resources->modes[l].width;
+        }
+        else
+        {
+            crtc->width = resources->modes[l].width;
+            crtc->height = resources->modes[l].height;
         }
 
         /* position, x */


More information about the Xfce4-commits mailing list