From c7d07c2f4d00bb0e7252b773ef2e1d0559f733fd Mon Sep 17 00:00:00 2001 From: rcaridade145 Date: Sat, 29 Feb 2020 13:01:36 +0000 Subject: compositor: fix possible crash closing/destroying window . Fixes to previous commit. Partially restore call to destroy_win in compositor when calling meta_window_free. This is needed to ensure that we never call meta_window_get_frame_bounds while windows is destroying. https://bugzilla.gnome.org/show_bug.cgi?id=751833 Based on commit https://gitlab.gnome.org/GNOME/metacity/-/commit/a9f28dbc26f5211ef08889109db3dc8c7ba76aca --- src/compositor/compositor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compositor/compositor.c') diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index 7e3c79c2..68f54d92 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -156,6 +156,10 @@ void meta_compositor_end_move (MetaCompositor *compositor, void meta_compositor_free_window (MetaCompositor *compositor, MetaWindow *window) { + #ifdef HAVE_COMPOSITE_EXTENSIONS + if (compositor && compositor->free_window) + compositor->free_window (compositor, window); + #endif } void -- cgit v1.2.1