Bug 562138 - Make all NSWindow's transparent by default, to prevent unwanted flashing of the background window while creating popup windows caused by synchronous painting of NSWindow's; r=josh

This commit is contained in:
Ehsan Akhgari 2011-04-08 15:06:15 -07:00
parent b3a7bb169b
commit d61e2040f9

View File

@ -429,7 +429,8 @@ nsresult nsCocoaWindow::CreateNativeWindow(const NSRect &aRect,
[mWindow setHasShadow:YES];
}
[mWindow setBackgroundColor:[NSColor whiteColor]];
[mWindow setBackgroundColor:[NSColor clearColor]];
[mWindow setOpaque:NO];
[mWindow setContentMinSize:NSMakeSize(60, 60)];
[mWindow disableCursorRects];