Fix for bug #57046. Flush the X connection before returning the xid of the plugin port window. This is part of the fix to get the java plugin working on linux again. r=akkana a=brendan

This commit is contained in:
blizzard%redhat.com 2000-10-25 03:40:53 +00:00
Родитель 6d635df17c
Коммит 9ba67a72d6
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1940,6 +1940,10 @@ void * nsWindow::GetNativeData(PRUint32 aDataType)
return NULL; return NULL;
} }
} }
// we have to flush the X queue here so that any plugins that
// might be running on seperate X connections will be able to use
// this window in case it was just created
XSync(GDK_DISPLAY(), False);
return (void *)GDK_WINDOW_XWINDOW(mSuperWin->bin_window); return (void *)GDK_WINDOW_XWINDOW(mSuperWin->bin_window);
} }