hw/xwin: In SelectionNotify, delete the property containing returned data after we have retrieved it

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2013-09-24 12:23:42 +01:00
parent ff018d88b9
commit c5ad92077e

View File

@ -568,13 +568,13 @@ winClipboardFlushXEvents(HWND hwnd,
winDebug("SelectionNotify - returned data %d left %d\n", winDebug("SelectionNotify - returned data %d left %d\n",
xtpText.nitems, ulReturnBytesLeft); xtpText.nitems, ulReturnBytesLeft);
/* Request the selection data */ /* Retrieve the selection data and delete the property */
iReturn = XGetWindowProperty(pDisplay, iReturn = XGetWindowProperty(pDisplay,
iWindow, iWindow,
atomLocalProperty, atomLocalProperty,
0, 0,
ulReturnBytesLeft, ulReturnBytesLeft,
False, True,
AnyPropertyType, AnyPropertyType,
&xtpText.encoding, &xtpText.encoding,
&xtpText.format, &xtpText.format,