]> git.eshelyaron.com Git - emacs.git/commit
Implement `follow-tooltip' on NS as well
authorPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 08:34:18 +0000 (16:34 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 9 Jun 2022 08:34:18 +0000 (16:34 +0800)
commite7ac2ac4e07d3fd6fee4a74a9cfc5bac9310fc18
tree2cf1ab3a6a41efbeaba620441cb3ace30bd48a3e
parent0ba43e15d9c9ffb3df8aeb3a7e446d9a4d62ccff
Implement `follow-tooltip' on NS as well

* lisp/term/ns-win.el (x-begin-drag): Pass `follow-tooltip'.
* src/nsfns.m (Fx_show_tip): Record last dx and dy.
(syms_of_nsfns): New staticpros.
* src/nsmenu.m ([EmacsTooltip moveTo:]): New method.

* src/nsselect.m (Fns_begin_drag): New parameter
`follow-tooltip'.

* src/nsterm.h (@interface EmacsWindow):
(EmacsTooltip): Update prototypes.
* src/nsterm.m ([EmacsWindow draggedImage:movedTo:]): Move any
tooltip to the right location.
([EmacsWindow beginDrag:forPasteboard...]): New parameter
`followTooltip'.
lisp/term/ns-win.el
src/nsfns.m
src/nsmenu.m
src/nsselect.m
src/nsterm.h
src/nsterm.m