]> git.eshelyaron.com Git - emacs.git/commit
Fix drag-and-drop bugs on Lucid build
authorPo Lu <luangruo@yahoo.com>
Tue, 25 Oct 2022 11:50:57 +0000 (19:50 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 25 Oct 2022 11:51:08 +0000 (19:51 +0800)
commitb6097fe279b03e2fb50fc6af063d7c8f1e55fe8b
tree8d7a834c70cbb631fbdb086e9b4a2ba35a6b25c2
parentbb95e597a9adcba0080cba85b2270fdf80696b3a
Fix drag-and-drop bugs on Lucid build

Also, optimize Fx_translate_coordinates to avoid excessive calls
to _XReply.

* lisp/x-dnd.el (x-dnd-get-drop-rectangle): Return empty drop
rectangle if posn-area.
* src/xfns.c (Fx_translate_coordinates): Accept arg
`require_child'.  If not set, allow optimizations based on
cached position data.
* src/xselect.c (x_handle_dnd_message): Use
x_translate_coordinates.
* src/xterm.c (x_translate_coordinates): Export function.
(x_handle_translate_coordinates): New function.
(handle_one_xevent): Fix coding style.
* src/xterm.h: Update prototypes.
lisp/x-dnd.el
src/xfns.c
src/xselect.c
src/xterm.c
src/xterm.h