[Xfce4-commits] [xfce/xfwm4] 02/02: compositor: Really avoid painting a screen of zero size
noreply at xfce.org
noreply at xfce.org
Wed Apr 8 21:00:54 CEST 2020
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 25eca2752133467d1cdb366c9557ebd62fb28143
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Wed Apr 8 20:56:15 2020 +0200
compositor: Really avoid painting a screen of zero size
Bug: 15852
Previous attempt to fix a crash with a screensize of 0, which can occur
without any output connected was incomplete (commit 3925109d) as a
client might still trigger a repaint by queuing up damages.
Make sure we take this case into account as well.
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 a7c182d..3c42617 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2406,6 +2406,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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list