[Xfce4-commits] [xfce/xfwm4] 02/04: compositor: Don't repaint a screen of zero size

noreply at xfce.org noreply at xfce.org
Wed Aug 28 18:46:19 CEST 2019


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

o   l   i   v   i   e   r       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/xfwm4.

commit 3925109d09614f95a5ef96b35db686d889457af0
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed Aug 28 10:28:16 2019 -0600

    compositor: Don't repaint a screen of zero size
    
    Bug: 15852
    
    If no monitor is connected for a given screen, it's reported size will
    be 0.
    
    In that case, trying to repaint the screen using GLX for vsync will
    crash.
    
    Add a test to make sure the size of the screen is a thing, before
    queuing up a repaint.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/compositor.c b/src/compositor.c
index 2561528..0f48872 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2593,6 +2593,11 @@ damage_screen (ScreenInfo *screen_info)
     XserverRegion region;
     XRectangle  r;
 
+    if (screen_info->width == 0 || screen_info->height == 0)
+    {
+        return;
+    }
+
     display_info = screen_info->display_info;
     r.x = 0;
     r.y = 0;

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


More information about the Xfce4-commits mailing list