From d0c0f5f648f97b4cd939fdbd43c94376f2d9be7f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 18 Jan 2022 08:25:02 +0000 Subject: [PATCH] * 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. --- src/haikuterm.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/haikuterm.c b/src/haikuterm.c index 7de792454f4..34cd1885a80 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -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; -- 2.39.2