summaryrefslogtreecommitdiff
path: root/src/compositor/compositor.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-30 15:09:05 -0400
committerVictor Kareh <[email protected]>2019-06-05 10:49:37 -0400
commitdf56628979abc17474b001c58c28c6f3637ada9d (patch)
treed9edaf00644eff8b248f1fb637f9ba8f2d9bfda6 /src/compositor/compositor.c
parentda5dce7c6f30018b00846c4332a2c06a4b95ffc0 (diff)
downloadmarco-df56628979abc17474b001c58c28c6f3637ada9d.tar.bz2
marco-df56628979abc17474b001c58c28c6f3637ada9d.tar.xz
compositor: fix possible crash closing/destroying window
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 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/a9f28dbc
Diffstat (limited to 'src/compositor/compositor.c')
-rw-r--r--src/compositor/compositor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 7e3c79c2..39344e82 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