diff options
author | Victor Kareh <[email protected]> | 2019-05-22 10:57:39 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-06-05 10:49:37 -0400 |
commit | e8e9fca2142503b2bbbdb429f45742038e862413 (patch) | |
tree | df85a07218f8c6359c9658054000b67774a5dcc1 /src | |
parent | 6f33395c69550e1fad6aa49d52e1284ca89f88c1 (diff) | |
download | marco-e8e9fca2142503b2bbbdb429f45742038e862413.tar.bz2 marco-e8e9fca2142503b2bbbdb429f45742038e862413.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/frame.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |