From c5ad92077e7eb32590fafa92d697cc4173f7e57b Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 24 Sep 2013 12:23:42 +0100 Subject: [PATCH] hw/xwin: In SelectionNotify, delete the property containing returned data after we have retrieved it Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winclipboard/xevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xwin/winclipboard/xevents.c b/hw/xwin/winclipboard/xevents.c index 33d52aafd..f4212b49d 100644 --- a/hw/xwin/winclipboard/xevents.c +++ b/hw/xwin/winclipboard/xevents.c @@ -568,13 +568,13 @@ winClipboardFlushXEvents(HWND hwnd, winDebug("SelectionNotify - returned data %d left %d\n", xtpText.nitems, ulReturnBytesLeft); - /* Request the selection data */ + /* Retrieve the selection data and delete the property */ iReturn = XGetWindowProperty(pDisplay, iWindow, atomLocalProperty, 0, ulReturnBytesLeft, - False, + True, AnyPropertyType, &xtpText.encoding, &xtpText.format,