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
This commit is contained in:
parent
4783d767d6
commit
91748aedb7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user