[metacity/wip/gtk-theme: 34/51] frame: destroy window->frame_bounds when destroying the frame
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/gtk-theme: 34/51] frame: destroy window->frame_bounds when destroying the frame
- Date: Thu, 1 Jan 2015 20:42:06 +0000 (UTC)
commit cf50a7bec89968d414677f08a098d4f8400cb76e
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 85a2a19..9581320 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]