mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Review comment from bug 596451 part C - the XSync is required so that pending composition using this surface is complete before the surface is re-used by the plugin.
This commit is contained in:
parent
71106cd304
commit
a2ace6a492
@ -499,6 +499,12 @@ PluginInstanceParent::RecvShow(const NPRect& updatedRect,
|
||||
|
||||
mSentPaintNotification = PR_FALSE;
|
||||
|
||||
#ifdef MOZ_X11
|
||||
if (mFrontSurface &&
|
||||
mFrontSurface->GetType() == gfxASurface::SurfaceTypeXlib)
|
||||
XSync(DefaultXDisplay(), False);
|
||||
#endif
|
||||
|
||||
if (mFrontSurface && gfxSharedImageSurface::IsSharedImage(mFrontSurface))
|
||||
*prevSurface = static_cast<gfxSharedImageSurface*>(mFrontSurface.get())->GetShmem();
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user