forked from AuroraMiddleware/gtk
quartz: Make sure the old toplevel is closed on recreation
This commit is contained in:
parent
a8008b796f
commit
30deba453a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user