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
This commit is contained in:
Rui Matos 2011-10-03 13:59:16 +01:00
parent be9f7d7729
commit 9f54f1d75d

View File

@ -217,6 +217,11 @@ meta_window_destroy_frame (MetaWindow *window)
frame->xwindow); frame->xwindow);
window->frame = NULL; window->frame = NULL;
if (window->frame_bounds)
{
cairo_region_destroy (window->frame_bounds);
window->frame_bounds = NULL;
}
/* Move keybindings to window instead of frame */ /* Move keybindings to window instead of frame */
meta_window_grab_keys (window); meta_window_grab_keys (window);