diff options
author | fvogel <fvogelnew1@free.fr> | 2017-08-08 18:59:46 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-08-08 18:59:46 (GMT) |
commit | 9f204fc74b2cd678951c1a6816e2b581e5d5b1a8 (patch) | |
tree | 185764f8d84419b5312ae3256b7a388685872583 /unix/tkUnixSelect.c | |
parent | c748753887adf6aa9ec1aed918f2af04fabde21a (diff) | |
parent | b580fd6f6e6ba0f5e4c16b9c158225fd1d6e322a (diff) | |
download | tk-9f204fc74b2cd678951c1a6816e2b581e5d5b1a8.zip tk-9f204fc74b2cd678951c1a6816e2b581e5d5b1a8.tar.gz tk-9f204fc74b2cd678951c1a6816e2b581e5d5b1a8.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'
Diffstat (limited to 'unix/tkUnixSelect.c')
-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 4bb462e..dacbd99 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 |