quartz: Make sure the old toplevel is closed on recreation

This commit is contained in:
Kristian Rietveld 2012-12-28 22:06:32 +01:00
parent a8008b796f
commit 30deba453a

View File

@ -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