зеркало из https://github.com/mozilla/gecko-dev.git
Bug 535612: Set GDK_NATIVE_WINDOWS in plugin processes to work around plugins that don't interact well with client-side GDK windows. r=karlt r=roc
This commit is contained in:
Родитель
6cd600a985
Коммит
66af1ab007
|
@ -235,6 +235,10 @@ PluginModuleChild::InitGraphics()
|
|||
{
|
||||
// FIXME/cjones: is this the place for this?
|
||||
#if defined(MOZ_WIDGET_GTK2)
|
||||
// Work around plugins that don't interact well with GDK
|
||||
// client-side windows.
|
||||
PR_SetEnv("GDK_NATIVE_WINDOWS=1");
|
||||
|
||||
gtk_init(0, 0);
|
||||
|
||||
// GtkPlug is a static class so will leak anyway but this ref makes sure.
|
||||
|
|
Загрузка…
Ссылка в новой задаче