mirror of
https://github.com/brl/mutter.git
synced 2025-02-06 08:34:10 +00:00
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:
parent
2be5662ee9
commit
e4ee40d7ff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user