projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75fb59c
)
Fix implementation of MULTIPLE
author
Po Lu
<luangruo@yahoo.com>
Sat, 12 Nov 2022 07:50:43 +0000
(15:50 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sat, 12 Nov 2022 11:01:30 +0000
(19:01 +0800)
* src/xselect.c (x_handle_selection_request): Make sure the type
of a reply to a MULTIPLE request is ATOM_PAIR.
src/xselect.c
patch
|
blob
|
history
diff --git
a/src/xselect.c
b/src/xselect.c
index db5c7853e7f43f2abad4c6c7491a2ab8c795e10c..b897894e8e0b39ed06302749da4787bd31bd3299 100644
(file)
--- a/
src/xselect.c
+++ b/
src/xselect.c
@@
-918,6
+918,13
@@
x_handle_selection_request (struct selection_input_event *event)
}
/* Save conversion results */
lisp_data_to_selection_data (dpyinfo, multprop, &cs);
+
+ /* If cs.type is ATOM, change it to ATOM_PAIR. This is because
+ the parameters to a MULTIPLE are ATOM_PAIRs. */
+
+ if (cs.type == XA_ATOM)
+ cs.type = dpyinfo->dpyinfo->Xatom_ATOM_PAIR;
+
XChangeProperty (dpyinfo->display, requestor, property,
cs.type, cs.format, PropModeReplace,
cs.data, cs.size);