]> git.eshelyaron.com Git - emacs.git/commit
Do not delete the MULTIPLE property after reading it
authorVladimir Panteleev <git@cy.md>
Fri, 4 Feb 2022 01:54:45 +0000 (01:54 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 5 Feb 2022 01:07:00 +0000 (09:07 +0800)
commitde687e8983f57c975e902af6eb484d9115ca0733
tree3d4b1300e738ae23517208ebe76cbb00286d044c
parentd52c929e31f60ff0462371bfe27ebd479e3e82bd
Do not delete the MULTIPLE property after reading it

Per the ICCCM spec:

> The requestor should delete [...] the property specified in the
> MULTIPLE request when it has copied all the data.

We are not the requestor, so we should not be deleting this property
(which is what x_get_window_property_as_lisp_data does).  The property
needs to remain available as the requestor will generally want to read
it back to see which conversions succeeded or not.

* src/xselect.c (x_get_window_property_as_lisp_data): Add flag which
skips deleting the read property, or handling INCR (which does not
make sense for MULTIPLE).
(x_handle_selection_request): Enable the flag.
src/xselect.c