Mercurial > emacs
comparison src/xterm.c @ 8098:e44c31d682b1
(x_draw_box): Use curs_x and curs_y, not f->cursor_[xy].
(x_make_frame_visible): In x_sync loop at the end,
every fourth time, sleep for 1/4 second.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 01 Jul 1994 00:32:05 +0000 |
parents | e242731ffc05 |
children | 3b90e6a741f1 |
comparison
equal
deleted
inserted
replaced
8097:f18272ebe3e6 | 8098:e44c31d682b1 |
---|---|
4449 | 4449 |
4450 static void | 4450 static void |
4451 x_draw_box (f) | 4451 x_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 |
4459 #ifdef HAVE_X11 | 4459 #ifdef HAVE_X11 |
4460 XDrawRectangle (x_current_display, FRAME_X_WINDOW (f), | 4460 XDrawRectangle (x_current_display, FRAME_X_WINDOW (f), |
5566 /* Synchronize to ensure Emacs knows the frame is visible | 5566 /* Synchronize to ensure Emacs knows the frame is visible |
5567 before we do anything else. We do this loop with input not blocked | 5567 before we do anything else. We do this loop with input not blocked |
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 } |
5577 | 5590 |
5578 /* Change from mapped state to withdrawn state. */ | 5591 /* Change from mapped state to withdrawn state. */ |