зеркало из https://github.com/mozilla/gecko-dev.git
Bug 923961 - Force b2g-desktop to composite on OSX. r=mstange
This commit is contained in:
Родитель
a67620d24c
Коммит
b313542a2b
|
@ -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];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче