fix for bug 45162 new plugins shouldn't use GdkSuperWin's, but instead should use XIDs. sr=blizzard r=valeski

git-svn-id: svn://10.0.0.236/trunk@81092 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%netscape.com
2000-10-13 01:10:21 +00:00
parent 4d276fe807
commit ad452e359d
5 changed files with 29 additions and 21 deletions

View File

@@ -941,10 +941,15 @@ SimplePluginInstance::PlatformSetWindow(nsPluginWindow* window)
if (window == NULL || window->window == NULL)
return NS_ERROR_NULL_POINTER;
if ( fPlatform.superwin == (GdkSuperWin *)window->window )
GdkWindow *win = gdk_window_lookup((XID)window->window);
if ( fPlatform.superwin && fPlatform.superwin->bin_window == win )
return NS_OK;
fPlatform.superwin = (GdkSuperWin *)window->window;
// should we destroy fPlatform.superwin ??
fPlatform.superwin = gdk_superwin_new(win, 0, 0, window->width, window->height);
// a little cleanup
if (fPlatform.label)