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 x f c e - 4 . 1 4 in repository xfce/xfwm4.
commit 91133dfb0d65e5c2a720ab0700e12833f1f64cc3 Author: Olivier Fourdan <four...@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 <four...@xfce.org> (cherry picked from commit 3925109d09614f95a5ef96b35db686d889457af0) (cherry picked from commit 25eca2752133467d1cdb366c9557ebd62fb28143) --- src/compositor.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 2561528..ab029dd 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2389,6 +2389,11 @@ repair_screen (ScreenInfo *screen_info) return FALSE; } + if (screen_info->width == 0 || screen_info->height == 0) + { + return FALSE; + } + display_info = screen_info->display_info; damage = screen_info->allDamage; if (damage) @@ -2593,6 +2598,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. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits