]> git.eshelyaron.com Git - emacs.git/commit
Implement non-system tooltips on NS
authorPo Lu <luangruo@yahoo.com>
Sat, 14 May 2022 03:29:43 +0000 (11:29 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 14 May 2022 03:30:29 +0000 (11:30 +0800)
commit09e86785ce2dae9176f4122c399c61b51240cfec
tree55df22f34721df629fd1711e477b07de2e60a327
parent949180b8ab4a76ae46389fed9e210d151b328a2a
Implement non-system tooltips on NS

* src/nsfns.m (unwind_create_frame): Return Lisp_Object like on
X.
(do_unwind_create_frame): New function.
(Fx_create_frame): Adjust accordingly.
(compute_tip_xy): Fix coding style.
(unwind_create_tip_frame, ns_create_tip_frame): New functions.
(x_hide_tip, Fx_show_tip, Fx_hide_tip): Create and hide actual
tooltip frames.
(syms_of_nsfns): New defvar `x-max-tooltip-size' and staticpros.

* src/nsterm.m (ns_set_window_size): Clean up coding style.
([EmacsWindow initWithEmacsFrame:]):
([EmacsWindow initWithEmacsFrame:fullscreen:screen:]): Handle
tooltip frames.
src/nsfns.m
src/nsterm.h
src/nsterm.m