[gtk+/gtk-2-24] quartz: Make sure the old toplevel is closed on recreation
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] quartz: Make sure the old toplevel is closed on recreation
- Date: Fri, 28 Dec 2012 21:16:33 +0000 (UTC)
commit 30deba453a045107eadd4deea572e29192c298c1
Author: Kristian Rietveld <kris loopnest org>
Date: Fri Dec 28 22:06:32 2012 +0100
quartz: Make sure the old toplevel is closed on recreation
gdk/quartz/gdkwindow-quartz.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 1325fa5..510ea24 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2732,7 +2732,10 @@ gdk_window_set_decorations (GdkWindow *window,
NSColor *bg = [impl->toplevel backgroundColor];
NSScreen *screen = [impl->toplevel screen];
- [impl->toplevel release];
+ /* Make sure the old window is closed, recall that releasedWhenClosed
+ * is set on GdkQuartzWindows.
+ */
+ [impl->toplevel close];
impl->toplevel = [[GdkQuartzWindow alloc] initWithContentRect:rect
styleMask:new_mask
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]