]> git.eshelyaron.com Git - emacs.git/commitdiff
Block input when drawing fringe bitmaps on Haiku
authorPo Lu <luangruo@yahoo.com>
Thu, 13 Jan 2022 01:59:23 +0000 (01:59 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 13 Jan 2022 01:59:23 +0000 (01:59 +0000)
* src/haikuterm.c (haiku_draw_fringe_bitmap): Block input.

src/haikuterm.c

index be28649aef2a091913f0b6896b90b74885416b5d..47199c139c636a3d139331d9d9f60541410254b0 100644 (file)
@@ -2222,6 +2222,7 @@ haiku_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
   void *view = FRAME_HAIKU_VIEW (XFRAME (WINDOW_FRAME (w)));
   struct face *face = p->face;
 
+  block_input ();
   BView_draw_lock (view);
   BView_StartClip (view);
 
@@ -2256,6 +2257,7 @@ haiku_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
     }
   BView_EndClip (view);
   BView_draw_unlock (view);
+  unblock_input ();
 }
 
 static void