mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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,7 +311,8 @@ commit_pending_state (MetaWaylandSurface *surface,
|
||||
}
|
||||
}
|
||||
|
||||
surface_process_damage (surface, pending->damage);
|
||||
if (!cairo_region_is_empty (pending->damage))
|
||||
surface_process_damage (surface, pending->damage);
|
||||
|
||||
if (pending->opaque_region)
|
||||
meta_surface_actor_set_opaque_region (surface->surface_actor, pending->opaque_region);
|
||||
|
Loading…
Reference in New Issue
Block a user