diff options
author | Rui Matos <tiagomatos@gmail.com> | 2011-10-03 13:59:16 +0100 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-01-19 05:08:19 +0200 |
commit | 330ff9b53398eeedb472736d123e6d158ab6bee9 (patch) | |
tree | bd82d88b6c50c04703913d7e5a081c561cda51de | |
parent | 0f2e32d15f593fc69414aa5fdaf166d83f6eeb0b (diff) | |
download | metacity-330ff9b53398eeedb472736d123e6d158ab6bee9.tar.gz |
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
-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 8f0aac77..65d55a67 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -215,6 +215,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); |