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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user