mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
wayland-surface: Ignore bufferless damage
Instead of letting a buggy client kill us.
This commit is contained in:
parent
dd4d6af185
commit
c8d0a66921
@ -108,6 +108,10 @@ surface_process_damage (MetaWaylandSurface *surface,
|
||||
int i, n_rectangles;
|
||||
cairo_rectangle_int_t buffer_rect;
|
||||
|
||||
/* Damage without a buffer makes no sense so ignore that, otherwise we would crash */
|
||||
if (!surface->buffer)
|
||||
return;
|
||||
|
||||
buffer_rect.x = 0;
|
||||
buffer_rect.y = 0;
|
||||
buffer_rect.width = cogl_texture_get_width (surface->buffer->texture);
|
||||
|
Loading…
Reference in New Issue
Block a user