[Xfce4-commits] [xfce/xfce4-settings] 01/01: display: Initialize crtc->scalex/y (Bug #15971)

noreply at xfce.org noreply at xfce.org
Wed Sep 18 14:30:25 CEST 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 8f46eb503d60c1b2ded00d7888c47a6ff3702546
Author: Alistair Buxton <a.j.buxton at gmail.com>
Date:   Wed Sep 18 01:32:09 2019 +0100

    display: Initialize crtc->scalex/y (Bug #15971)
    
    These values are being used uninitialized in some cases, which means
    they have value 0. This results in display settings thinking the
    monitors have size 0x0, which causes bad things to happen. Fix this
    by initializing them to 1 when the struct is created.
---
 xfsettingsd/displays.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c
index 2efefa8..27e98b8 100644
--- a/xfsettingsd/displays.c
+++ b/xfsettingsd/displays.c
@@ -1119,6 +1119,8 @@ xfce_displays_helper_list_crtcs (XfceDisplaysHelper *helper)
         crtc->height = crtc_info->height;
         crtc->x = crtc_info->x;
         crtc->y = crtc_info->y;
+        crtc->scalex = 1.0;
+        crtc->scaley = 1.0;
 
         crtc->noutput = crtc_info->noutput;
         crtc->outputs = NULL;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list