aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 09f919cf462..d859ffdfee4 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4451,8 +4451,8 @@ static void
4451x_draw_box (f) 4451x_draw_box (f)
4452 struct frame *f; 4452 struct frame *f;
4453{ 4453{
4454 int left = CHAR_TO_PIXEL_COL (f, f->cursor_x); 4454 int left = CHAR_TO_PIXEL_COL (f, curs_x);
4455 int top = CHAR_TO_PIXEL_ROW (f, f->cursor_y); 4455 int top = CHAR_TO_PIXEL_ROW (f, curs_y);
4456 int width = FONT_WIDTH (f->display.x->font); 4456 int width = FONT_WIDTH (f->display.x->font);
4457 int height = f->display.x->line_height; 4457 int height = f->display.x->line_height;
4458 4458
@@ -5568,9 +5568,22 @@ x_make_frame_visible (f)
5568 so that incoming events are handled. */ 5568 so that incoming events are handled. */
5569 { 5569 {
5570 Lisp_Object frame; 5570 Lisp_Object frame;
5571 int one_in_four = 0;
5571 XSET (frame, Lisp_Frame, f); 5572 XSET (frame, Lisp_Frame, f);
5572 while (! f->async_visible) 5573 while (! f->async_visible)
5573 x_sync (frame); 5574 {
5575 x_sync (frame);
5576 /* On HPUX on the HP800, the sleep is needed sometimes. */
5577 if ((one_in_four & 3) == 0)
5578 {
5579#ifdef EMACS_HAS_USECS
5580 Fsleep_for (make_number (1), make_number (0));
5581#else
5582 Fsleep_for (make_number (0), make_number (250));
5583#endif
5584 }
5585 one_in_four++;
5586 }
5574 FRAME_SAMPLE_VISIBILITY (f); 5587 FRAME_SAMPLE_VISIBILITY (f);
5575 } 5588 }
5576} 5589}