compositor: Wrap x11 surface actor destruction in error trap

This does a number of X11 calls. For what it might happen, better
wrap these in error traps.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2793>
This commit is contained in:
Carlos Garnacho 2023-01-18 22:45:10 +01:00 committed by Marge Bot
parent 2be5662ee9
commit e4ee40d7ff

View File

@ -311,8 +311,12 @@ meta_surface_actor_x11_is_unredirected (MetaSurfaceActorX11 *self)
static void
release_x11_resources (MetaSurfaceActorX11 *self)
{
MetaX11Display *x11_display = meta_display_get_x11_display (self->display);
meta_x11_error_trap_push (x11_display);
detach_pixmap (self);
free_damage (self);
meta_x11_error_trap_pop (x11_display);
}
static void