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:
Chris Jones 2010-02-02 00:28:28 -06:00
Родитель 6cd600a985
Коммит 66af1ab007
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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.