winex11.drv: Flush property notify events before deleting properties.

This commit is contained in:
Vincent Povirk 2013-01-03 17:00:40 -06:00 committed by Alexandre Julliard
parent 4013dc85e9
commit 47217eaa83
1 changed files with 3 additions and 3 deletions

View File

@ -2360,12 +2360,12 @@ static BOOL X11DRV_CLIPBOARD_ReadProperty(Display *display, Window w, Atom prop,
if (prop == None)
return FALSE;
if (!X11DRV_CLIPBOARD_GetProperty(display, w, prop, &atype, data, datasize))
return FALSE;
while (XCheckTypedWindowEvent(display, w, PropertyNotify, &xe))
;
if (!X11DRV_CLIPBOARD_GetProperty(display, w, prop, &atype, data, datasize))
return FALSE;
if (atype == x11drv_atom(INCR))
{
unsigned char *buf = *data;