diff options
author | fvogel <fvogelnew1@free.fr> | 2017-09-02 13:32:53 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-09-02 13:32:53 (GMT) |
commit | 037466d7f491f06ef37964f311ad858f805ec45d (patch) | |
tree | 0ef10d0e91184b6ff5fa0f5bdcc2502d6c3387fb /unix/tkUnixSelect.c | |
parent | 23b4ff6944bc07d9529cc7e084574c0ec8e8b9d0 (diff) | |
download | tk-037466d7f491f06ef37964f311ad858f805ec45d.zip tk-037466d7f491f06ef37964f311ad858f805ec45d.tar.gz tk-037466d7f491f06ef37964f311ad858f805ec45d.tar.bz2 |
Fix [73ba07efcd]: Use correct property type when handling MULTIPLE conversion requests. Patch from 'dpb'
Diffstat (limited to 'unix/tkUnixSelect.c')
-rw-r--r-- | unix/tkUnixSelect.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c index dacbd99..6d379ec 100644 --- a/unix/tkUnixSelect.c +++ b/unix/tkUnixSelect.c @@ -872,8 +872,9 @@ ConvertSelection( goto refuse; } result = XGetWindowProperty(eventPtr->display, eventPtr->requestor, - eventPtr->property, 0, MAX_PROP_WORDS, False, XA_ATOM, - &type, &format, &incr.numConversions, &bytesAfter, + eventPtr->property, 0, MAX_PROP_WORDS, False, + winPtr->dispPtr->atomPairAtom, &type, &format, + &incr.numConversions, &bytesAfter, (unsigned char **) multAtomsPtr); if ((result != Success) || (bytesAfter != 0) || (format != 32) || (type == None)) { @@ -1035,8 +1036,8 @@ ConvertSelection( } if (multiple) { XChangeProperty(reply.xsel.display, reply.xsel.requestor, - reply.xsel.property, XA_ATOM, 32, PropModeReplace, - (unsigned char *) incr.multAtoms, + reply.xsel.property, winPtr->dispPtr->atomPairAtom, + 32, PropModeReplace, (unsigned char *) incr.multAtoms, (int) incr.numConversions*2); } else { /* |