]> git.eshelyaron.com Git - emacs.git/commit
Also show mouse DND tooltip contents during interprogram drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 05:11:08 +0000 (13:11 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 05:11:08 +0000 (13:11 +0800)
commit2f31dbeadff0abc38ded5dd072df1ec179c49945
tree5e3a0da965fa681348bb48d045d9d94f8edbaea0
parent7e41b4aa231ed094613fe0ea12e7ec37a396240f
Also show mouse DND tooltip contents during interprogram drag-and-drop

* doc/lispref/frames.texi (Drag and Drop): Document new
parameter to `x-begin-drag'.
* lisp/mouse.el (mouse-drag-and-drop-region): Don't hide tooltip
when initiating interprogram drag-and-drop.
* lisp/term/haiku-win.el (x-begin-drag):
* lisp/term/ns-win.el (x-begin-drag): Add stubs for new
parameter.
* src/xfns.c (Fx_begin_drag): New parameter `follow-tooltip'.
(Fx_show_tip, syms_of_xfns): Add records of the last dx and dy
given to `x-show-tip'.
* src/xterm.c (x_clear_dnd_monitors): New function.
(x_dnd_begin_drag_and_drop): Save monitor attributes list if
appropriate.
(x_dnd_compute_tip_xy, x_dnd_update_tooltip_position): New
function.
(x_dnd_update_state, handle_one_xevent): Update tooltip position
during DND mouse movement.
(syms_of_xterm): Update staticpros.
* src/xterm.h: Update prototypes.
doc/lispref/frames.texi
lisp/mouse.el
lisp/term/haiku-win.el
lisp/term/ns-win.el
src/xfns.c
src/xterm.c
src/xterm.h