mirror of
https://github.com/brl/mutter.git
synced 2025-03-28 22:23:47 +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,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