summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2013-09-24 12:23:42 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2014-11-06 12:09:12 +0000
commitc5ad92077e7eb32590fafa92d697cc4173f7e57b (patch)
tree778dc5dc81ec4ead54f2d7f5840a0119f2f35272
parentff018d88b9f0fe23ba96c81b53d58532baf4df42 (diff)
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>
-rw-r--r--hw/xwin/winclipboard/xevents.c4
1 files 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,