diff options
author | fvogel <fvogelnew1@free.fr> | 2017-08-08 18:59:59 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-08-08 18:59:59 (GMT) |
commit | 483ff8fa06a38dd6b6c125df84fcc452324aa507 (patch) | |
tree | 1dfea87486798def3d24e4a90cfdc857630c971a | |
parent | ce3c4b3b084edc73126497db2ecbd1920e299f35 (diff) | |
parent | 69830a418063cd5919c20400bce910c04f04d933 (diff) | |
download | tk-483ff8fa06a38dd6b6c125df84fcc452324aa507.zip tk-483ff8fa06a38dd6b6c125df84fcc452324aa507.tar.gz tk-483ff8fa06a38dd6b6c125df84fcc452324aa507.tar.bz2 |
Fix [28d0b8fb2f]: According to the ICCCM, the property used for X selection conversion must be deleted before requesting the conversion. Patch from 'dpb'
-rw-r--r-- | unix/tkUnixSelect.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c index 53275d1..896e897 100644 --- a/unix/tkUnixSelect.c +++ b/unix/tkUnixSelect.c @@ -166,6 +166,13 @@ TkSelGetSelection( pendingRetrievals = &retr; /* + * Delete the property to indicate that no parameters are supplied for + * the conversion request. + */ + + XDeleteProperty(winPtr->display, retr.winPtr->window, retr.property); + + /* * Initiate the request for the selection. Note: can't use TkCurrentTime * for the time. If we do, and this application hasn't received any X * events in a long time, the current time will be way in the past and |