[Xfce4-commits] <xfce4-settings:bluesabre/display-settings> Ignore disabled CRTCs when we try to find the topleftmost one

Simon Steinbeiss noreply at xfce.org
Mon Dec 9 12:58:19 CET 2013


Updating branch refs/heads/bluesabre/display-settings
         to 641c6c4d7dda4ac41f811c8c0f9e26738f12a732 (commit)
       from 4eaeaf0726dd89d9e3fd66fff37e7aaa117260c2 (commit)

commit 641c6c4d7dda4ac41f811c8c0f9e26738f12a732
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date:   Wed Nov 7 20:11:13 2012 +0100

    Ignore disabled CRTCs when we try to find the topleftmost one
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>

 xfsettingsd/displays.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c
index 7238f2c..e53c49f 100644
--- a/xfsettingsd/displays.c
+++ b/xfsettingsd/displays.c
@@ -816,6 +816,9 @@ xfce_displays_helper_get_topleftmost_pos (XfceRRCrtc         *crtc,
 {
     g_assert (XFCE_IS_DISPLAYS_HELPER (helper) && crtc);
 
+    if (crtc->mode == None)
+        return;
+
     /* used to normalize positions later */
     helper->min_x = MIN (helper->min_x, crtc->x);
     helper->min_y = MIN (helper->min_y, crtc->y);


More information about the Xfce4-commits mailing list