]> git.eshelyaron.com Git - emacs.git/commit
Implement `follow-tooltip' for DND on Haiku
authorPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 07:20:22 +0000 (07:20 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 07:21:42 +0000 (07:21 +0000)
commit0936d6fa20894159d75eb1933325d653e4820d90
tree996e887e25efd6c0e50f2afa8aa083987f08bd13
parent43f8690ebf3439af90cf72c619e75afb4cff1a83
Implement `follow-tooltip' for DND on Haiku

* lisp/term/haiku-win.el (x-begin-drag): Implement
`follow-tooltip'.
* src/haikufns.c (Fx_show_tip): Record last dx and dy.
(syms_of_haikufns): New staticpros.

* src/haikuselect.c (haiku_unwind_drag_message): Clear new flag.
(Fhaiku_drag_message): New argument `follow-tooltip'.  Set new
flag.
(haiku_dnd_compute_tip_xy): New function.
(haiku_note_drag_motion): Move tooltip if flag is true.

* src/haikuterm.c (haiku_read_socket): Don't generate help event
if mouse moves onto a tooltip during DND.
* src/haikuterm.h: Update prototypes.
lisp/term/haiku-win.el
src/haikufns.c
src/haikuselect.c
src/haikuterm.c
src/haikuterm.h