]> git.eshelyaron.com Git - emacs.git/commit
Comply with the Motif requirement for unique drag atoms
authorPo Lu <luangruo@yahoo.com>
Thu, 16 Jun 2022 02:08:12 +0000 (10:08 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 16 Jun 2022 02:08:12 +0000 (10:08 +0800)
commit9accc800a75529c1eaf81d6844c53b6ca2f5622f
treedf246f64d41c1d954e15007affa0d348f961877d
parent556c304007fbea1a552c65529fa86c0a5637b27b
Comply with the Motif requirement for unique drag atoms

* src/xselect.c (x_handle_selection_request)
(Fx_get_selection_internal, syms_of_xselect): New variable
`x-selection-alias-alist'.  Respect that alist of aliases.

* src/xterm.c (x_atom_refs): Intern _EMACS_DRAG_ATOM.
(xm_get_drag_atom_1, xm_get_drag_atom): New functions.
(xm_setup_drag_info, x_dnd_cleanup_drag_and_drop)
(x_dnd_begin_drag_and_drop, x_dnd_update_state, handle_one_xevent)
(x_connection_closed, x_intern_cached_atom): Alias the drag atom
to XdndSelection.  Use it instead of XdndSelection to set the
Motif index atom.
(x_get_atom_name): Handle new atoms.
(syms_of_xterm): New defsym.
* src/xterm.h (struct x_display_info): New fields for new atoms
and their names.
src/xselect.c
src/xterm.c
src/xterm.h