Bug #208762. Fix problems with Mozilla crashing or hanging on X servers with multiple visuals. Make sure to use the same visual when creating windows as when we are drawing in the gfx code.

git-svn-id: svn://10.0.0.236/trunk@144518 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%redhat.com
2003-07-07 17:54:57 +00:00
parent 622592fc32
commit 91c5e0e44b

View File

@@ -221,6 +221,11 @@ moz_container_init (MozContainer *container)
container->container.resize_mode = GTK_RESIZE_IMMEDIATE;
gtk_widget_set_redraw_on_allocate(GTK_WIDGET(container),
FALSE);
/* Mozilla uses the the gdbrgb colormap and visual throughout the
backend so for widgets we just use that colormap instead of the
default one. */
gtk_widget_set_colormap(GTK_WIDGET(container), gdk_rgb_get_colormap());
}
void