From e8e9fca2142503b2bbbdb429f45742038e862413 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Wed, 22 May 2019 10:57:39 -0400 Subject: frame: destroy window->frame_bounds when destroying the frame Since window->frame_bounds is used as a cache we need to invalidate it when destroying the frame. https://bugzilla.gnome.org/show_bug.cgi?id=660773 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/330ff9b5 --- src/core/frame.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/frame.c b/src/core/frame.c index d2f5cfd3..b6ed741e 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -214,6 +214,11 @@ meta_window_destroy_frame (MetaWindow *window) frame->xwindow); window->frame = NULL; + if (window->frame_bounds) + { + cairo_region_destroy (window->frame_bounds); + window->frame_bounds = NULL; + } /* Move keybindings to window instead of frame */ meta_window_grab_keys (window); -- cgit v1.2.1