quartz: retain content view when switching over toplevel.

This commit is contained in:
Kristian Rietveld 2012-12-28 22:11:13 +01:00
parent 30deba453a
commit 184407309f

View File

@ -2685,7 +2685,7 @@ gdk_window_set_decorations (GdkWindow *window,
{
NSRect rect;
old_view = [impl->toplevel contentView];
old_view = [[impl->toplevel contentView] retain];
rect = [impl->toplevel frame];
@ -2760,6 +2760,8 @@ gdk_window_set_decorations (GdkWindow *window,
*/
if (![old_view isOpaque] && [impl->toplevel hasShadow])
[(GdkQuartzView*)old_view setNeedsInvalidateShadow:YES];
[old_view release];
}
GDK_QUARTZ_RELEASE_POOL;