]> git.eshelyaron.com Git - emacs.git/commit
Improve tooltip implementation on Haiku
authorPo Lu <luangruo@yahoo.com>
Tue, 18 Jan 2022 08:15:08 +0000 (08:15 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 18 Jan 2022 08:21:42 +0000 (08:21 +0000)
commitd556e75af80a346c8a1bfca2d0bfe6710219eef8
tree0d1e74a6aced01b66cc3bf83044e8ba143ef63d6
parentc99e28207a69e6d4305be25ac420ffa664924652
Improve tooltip implementation on Haiku

This fixes several issues: tooltips having no right internal
border, reusing tooltips occasionally freezing Emacs, and
inconsistent behaviour when compared to X.

* src/haiku_support.cc (BWindow_resize): Revert a recent change.
(BView_move_frame):
(BWindow_set_avoid_focus): Stop sync'ing when locked.  This
tends to cause lockups for an unknown reason.
* src/haikufns.c (initial_setup_back_buffer): New function.
(haiku_create_frame): Remove tooltip related code.
(haiku_set_internal_border_width): Handle cases where the face
cache is NULL and/or the window has not been created.
(haiku_set_inhibit_double_buffering): Likewise.
(haiku_create_tip_frame): New function.
(Fx_create_frame): Remove tooltip specific code.
(Fx_show_tip): Synchronize code with X.

* src/haikuterm.c (haiku_new_font): Don't adjust size on tooltip
frames.
(haiku_read_socket): Draw internal border on tooltip frames
during resize.
(haiku_clear_under_internal_border): Handle cases where the face
cache is NULL.
src/haiku_support.cc
src/haikufns.c
src/haikuterm.c