From 91748aedb75d2f9f5f8259ce96ababa089c229d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 13 Feb 2020 22:50:40 +0100 Subject: [PATCH] blur-effect: Handle failure of background blitting gracefully `paint_background` already provides a return value in case the blitting of the framebuffer fails, handle that and fall back to only drawing the actor in case something goes wrong. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1000 --- src/shell-blur-effect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c index c3fb3bc60..5e50ab886 100644 --- a/src/shell-blur-effect.c +++ b/src/shell-blur-effect.c @@ -807,7 +807,9 @@ shell_blur_effect_paint (ClutterEffect *effect, break; case SHELL_BLUR_MODE_BACKGROUND: - paint_background (self, paint_context, &source_actor_box); + if (!paint_background (self, paint_context, &source_actor_box)) + goto fail; + apply_blur (self, paint_context, &self->background_fb, 255); break; }