1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00

* src/haikuterm.c (haiku_read_socket): Add work for frame size bug.

BWindow::ResizeTo seems to have the same rounding issues that
BRect has, but I have no idea how to solve it there.  As a
temporary workaround until a solution has been found, avoid
garbaging tooltip frames when FrameResized reports different
dimensions from what they were set to.
This commit is contained in:
Po Lu 2022-01-18 08:25:02 +00:00
parent 4eebf528fc
commit d0c0f5f648

View file

@ -2647,15 +2647,6 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
if (FRAME_TOOLTIP_P (f))
{
if (FRAME_PIXEL_WIDTH (f) != width
|| FRAME_PIXEL_HEIGHT (f) != height)
{
SET_FRAME_GARBAGED (f);
BView_draw_lock (FRAME_HAIKU_VIEW (f));
BView_resize_to (FRAME_HAIKU_VIEW (f), width, height);
BView_draw_unlock (FRAME_HAIKU_VIEW (f));
}
FRAME_PIXEL_WIDTH (f) = width;
FRAME_PIXEL_HEIGHT (f) = height;