[mutter] frame: destroy window->frame_bounds when destroying the frame
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] frame: destroy window->frame_bounds when destroying the frame
- Date: Tue, 4 Oct 2011 11:49:58 +0000 (UTC)
commit 9f54f1d75d2eae557e982454682080b201917e0c
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Oct 3 13:59:16 2011 +0100
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
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 8d0c06b..33e0c6f 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -217,6 +217,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]