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
Родитель 3f92f349a4
Коммит b96a30a8a6
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

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