wayland-surface: Only call process_damage when we have any damage
This fixes a crash when a client commits a surface without attaching a buffer.
This commit is contained in:
parent
1016e2555a
commit
dd4d6af185
@ -311,6 +311,7 @@ commit_pending_state (MetaWaylandSurface *surface,
|
||||
}
|
||||
}
|
||||
|
||||
if (!cairo_region_is_empty (pending->damage))
|
||||
surface_process_damage (surface, pending->damage);
|
||||
|
||||
if (pending->opaque_region)
|
||||
|
Loading…
x
Reference in New Issue
Block a user