forked from AuroraMiddleware/gtk
quartz: retain content view when switching over toplevel.
This commit is contained in:
parent
30deba453a
commit
184407309f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user