]> git.eshelyaron.com Git - emacs.git/commit
Handle mouse movement correctly during DND from one of our own frames
authorPo Lu <luangruo@yahoo.com>
Mon, 4 Apr 2022 12:32:46 +0000 (20:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 4 Apr 2022 12:32:46 +0000 (20:32 +0800)
commit84cf3be6f77f61dd361acdb3683ab9d71e76c995
treeccf6ea1ff0d6ac533f3665991f311750af99f738
parent3d2531c12c54f9ab923603655016077450c23ab2
Handle mouse movement correctly during DND from one of our own frames

* lisp/dnd.el (dnd-handle-movement): Select the window specified
in posn.
* lisp/term/x-win.el (x-dnd-movement): New function.
(x-dnd-movement-function): Set it as the default.
* src/frame.c (delete_frame): Prevent deleting the drop source
frame.
* src/xterm.c (x_dnd_send_position): Set new mouse movement
flags if the target window is one of our own frames.
(x_dnd_begin_drag_and_drop): Call DND movement function whenever
appropriate.
(x_free_frame_resources): Remove useless code.
(syms_of_xterm): New defvar `x-dnd-movement-function'.
* src/xterm.h: Update prototypes.
lisp/dnd.el
lisp/term/x-win.el
src/frame.c
src/xterm.c
src/xterm.h