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)
|
if (pending->opaque_region)
|
||||||
meta_surface_actor_set_opaque_region (surface->surface_actor, pending->opaque_region);
|
meta_surface_actor_set_opaque_region (surface->surface_actor, pending->opaque_region);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user