Bug 923961 - Force b2g-desktop to composite on OSX. r=mstange

This commit is contained in:
Blake Kaplan 2013-10-29 13:57:16 -07:00
Родитель a67620d24c
Коммит b313542a2b
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -472,7 +472,14 @@ nsresult nsCocoaWindow::CreateNativeWindow(const NSRect &aRect,
}
[mWindow setBackgroundColor:[NSColor clearColor]];
#ifdef MOZ_B2G
// In B2G, we don't create popups and we need OMTC to work (because out of
// process compositing depends on it). Therefore, we don't need our windows
// to be transparent.
[mWindow setOpaque:YES];
#else
[mWindow setOpaque:NO];
#endif
[mWindow setContentMinSize:NSMakeSize(60, 60)];
[mWindow disableCursorRects];