aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 17d57f12a06..ccbb59f750d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -464,7 +464,8 @@ XTcursor_to (row, col)
464 compute_char_face and compute_glyph_face on everything it puts in 464 compute_char_face and compute_glyph_face on everything it puts in
465 the display structure, we can assume that the face code on each 465 the display structure, we can assume that the face code on each
466 glyph is a valid index into FRAME_COMPUTED_FACES (f), and the one 466 glyph is a valid index into FRAME_COMPUTED_FACES (f), and the one
467 to which we can actually apply intern_face. */ 467 to which we can actually apply intern_face.
468 Call this function with input blocked. */
468 469
469#if 1 470#if 1
470/* This is the multi-face code. */ 471/* This is the multi-face code. */
@@ -751,7 +752,8 @@ XTclear_end_of_line (first_unused)
751/* Erase the character (if any) at the position just before X, Y in frame F, 752/* Erase the character (if any) at the position just before X, Y in frame F,
752 then redraw it and the character before it. 753 then redraw it and the character before it.
753 This is necessary when we erase starting at X, 754 This is necessary when we erase starting at X,
754 in case the character after X overlaps into the one before X. */ 755 in case the character after X overlaps into the one before X.
756 Call this function with input blocked. */
755 757
756static void 758static void
757redraw_previous_char (f, x, y) 759redraw_previous_char (f, x, y)
@@ -1146,7 +1148,8 @@ static void clear_cursor ();
1146/* Output into a rectangle of an X-window (for frame F) 1148/* Output into a rectangle of an X-window (for frame F)
1147 the characters in f->phys_lines that overlap that rectangle. 1149 the characters in f->phys_lines that overlap that rectangle.
1148 TOP and LEFT are the position of the upper left corner of the rectangle. 1150 TOP and LEFT are the position of the upper left corner of the rectangle.
1149 ROWS and COLS are the size of the rectangle. */ 1151 ROWS and COLS are the size of the rectangle.
1152 Call this function with input blocked. */
1150 1153
1151static void 1154static void
1152dumprectangle (f, left, top, cols, rows) 1155dumprectangle (f, left, top, cols, rows)
@@ -2648,6 +2651,8 @@ process_expose_from_menu (event)
2648{ 2651{
2649 FRAME_PTR f; 2652 FRAME_PTR f;
2650 2653
2654 BLOCK_INPUT;
2655
2651 f = x_window_to_frame (event.xexpose.window); 2656 f = x_window_to_frame (event.xexpose.window);
2652 if (f) 2657 if (f)
2653 { 2658 {
@@ -2672,6 +2677,8 @@ process_expose_from_menu (event)
2672 if (bar) 2677 if (bar)
2673 x_scroll_bar_expose (bar, &event); 2678 x_scroll_bar_expose (bar, &event);
2674 } 2679 }
2680
2681 UNBLOCK_INPUT;
2675} 2682}
2676 2683
2677 2684
@@ -3950,6 +3957,8 @@ x_display_cursor (f, on)
3950 struct frame *f; 3957 struct frame *f;
3951 int on; 3958 int on;
3952{ 3959{
3960 BLOCK_INPUT;
3961
3953 if (FRAME_DESIRED_CURSOR (f) == filled_box_cursor) 3962 if (FRAME_DESIRED_CURSOR (f) == filled_box_cursor)
3954 x_display_box_cursor (f, on); 3963 x_display_box_cursor (f, on);
3955 else if (FRAME_DESIRED_CURSOR (f) == bar_cursor) 3964 else if (FRAME_DESIRED_CURSOR (f) == bar_cursor)
@@ -3957,6 +3966,8 @@ x_display_cursor (f, on)
3957 else 3966 else
3958 /* Those are the only two we have implemented! */ 3967 /* Those are the only two we have implemented! */
3959 abort (); 3968 abort ();
3969
3970 UNBLOCK_INPUT;
3960} 3971}
3961 3972
3962/* Icons. */ 3973/* Icons. */