]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/haikuterm.c (haiku_read_socket): Add work for frame size bug.
authorPo Lu <luangruo@yahoo.com>
Tue, 18 Jan 2022 08:25:02 +0000 (08:25 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 18 Jan 2022 09:42:21 +0000 (09:42 +0000)
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

index 7de792454f497e87d98d682e983c6d859308853b..34cd1885a809cfed7e292bad10efdf8ca89fb30f 100644 (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;