mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-10 13:40:36 -08:00
(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.
This commit is contained in:
parent
31bdddb378
commit
2a6cf806e2
1 changed files with 16 additions and 3 deletions
19
src/xterm.c
19
src/xterm.c
|
|
@ -4451,8 +4451,8 @@ static void
|
|||
x_draw_box (f)
|
||||
struct frame *f;
|
||||
{
|
||||
int left = CHAR_TO_PIXEL_COL (f, f->cursor_x);
|
||||
int top = CHAR_TO_PIXEL_ROW (f, f->cursor_y);
|
||||
int left = CHAR_TO_PIXEL_COL (f, curs_x);
|
||||
int top = CHAR_TO_PIXEL_ROW (f, curs_y);
|
||||
int width = FONT_WIDTH (f->display.x->font);
|
||||
int height = f->display.x->line_height;
|
||||
|
||||
|
|
@ -5568,9 +5568,22 @@ x_make_frame_visible (f)
|
|||
so that incoming events are handled. */
|
||||
{
|
||||
Lisp_Object frame;
|
||||
int one_in_four = 0;
|
||||
XSET (frame, Lisp_Frame, f);
|
||||
while (! f->async_visible)
|
||||
x_sync (frame);
|
||||
{
|
||||
x_sync (frame);
|
||||
/* On HPUX on the HP800, the sleep is needed sometimes. */
|
||||
if ((one_in_four & 3) == 0)
|
||||
{
|
||||
#ifdef EMACS_HAS_USECS
|
||||
Fsleep_for (make_number (1), make_number (0));
|
||||
#else
|
||||
Fsleep_for (make_number (0), make_number (250));
|
||||
#endif
|
||||
}
|
||||
one_in_four++;
|
||||
}
|
||||
FRAME_SAMPLE_VISIBILITY (f);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue