comparison src/xterm.c @ 3591:507f64624555

Apply typo patches from Paul Eggert.
author Jim Blandy <jimb@redhat.com>
date Wed, 09 Jun 1993 11:59:12 +0000
parents 19aab2d09a4d
children 70a688f0cdae
comparison
equal deleted inserted replaced
3590:d5f22061277d 3591:507f64624555
701 } 701 }
702 702
703 /* Invert the middle quarter of the frame for .15 sec. */ 703 /* Invert the middle quarter of the frame for .15 sec. */
704 704
705 /* We use the select system call to do the waiting, so we have to make sure 705 /* We use the select system call to do the waiting, so we have to make sure
706 it's avaliable. If it isn't, we just won't do visual bells. */ 706 it's available. If it isn't, we just won't do visual bells. */
707 #if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT) 707 #if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT)
708 708
709 /* Subtract the `struct timeval' values X and Y, 709 /* Subtract the `struct timeval' values X and Y,
710 storing the result in RESULT. 710 storing the result in RESULT.
711 Return 1 if the difference is negative, otherwise 0. */ 711 Return 1 if the difference is negative, otherwise 0. */
1286 static void XTframe_rehighlight (); 1286 static void XTframe_rehighlight ();
1287 1287
1288 /* The focus has changed. Update the frames as necessary to reflect 1288 /* The focus has changed. Update the frames as necessary to reflect
1289 the new situation. Note that we can't change the selected frame 1289 the new situation. Note that we can't change the selected frame
1290 here, because the lisp code we are interrupting might become confused. 1290 here, because the lisp code we are interrupting might become confused.
1291 Each event gets marked with the frame in which it occured, so the 1291 Each event gets marked with the frame in which it occurred, so the
1292 lisp code can tell when the switch took place by examining the events. */ 1292 lisp code can tell when the switch took place by examining the events. */
1293 1293
1294 static void 1294 static void
1295 x_new_focus_frame (frame) 1295 x_new_focus_frame (frame)
1296 struct frame *frame; 1296 struct frame *frame;
1627 static FRAME_PTR last_mouse_frame; 1627 static FRAME_PTR last_mouse_frame;
1628 static XRectangle last_mouse_glyph; 1628 static XRectangle last_mouse_glyph;
1629 1629
1630 /* The scroll bar in which the last X motion event occurred. 1630 /* The scroll bar in which the last X motion event occurred.
1631 1631
1632 If the last X motion event occured in a scroll bar, we set this 1632 If the last X motion event occurred in a scroll bar, we set this
1633 so XTmouse_position can know whether to report a scroll bar motion or 1633 so XTmouse_position can know whether to report a scroll bar motion or
1634 an ordinary motion. 1634 an ordinary motion.
1635 1635
1636 If the last X motion event didn't occur in a scroll bar, we set this 1636 If the last X motion event didn't occur in a scroll bar, we set this
1637 to Qnil, to tell XTmouse_position to return an ordinary motion event. */ 1637 to Qnil, to tell XTmouse_position to return an ordinary motion event. */
2025 } 2025 }
2026 2026
2027 UNBLOCK_INPUT; 2027 UNBLOCK_INPUT;
2028 } 2028 }
2029 2029
2030 /* Move a scroll bar around on the screen, to accomodate changing 2030 /* Move a scroll bar around on the screen, to accommodate changing
2031 window configurations. */ 2031 window configurations. */
2032 static void 2032 static void
2033 x_scroll_bar_move (bar, top, left, width, height) 2033 x_scroll_bar_move (bar, top, left, width, height)
2034 struct scroll_bar *bar; 2034 struct scroll_bar *bar;
2035 int top, left, width, height; 2035 int top, left, width, height;
2333 bar->dragging = Qnil; 2333 bar->dragging = Qnil;
2334 } 2334 }
2335 2335
2336 /* Same deal here as the other #if 0. */ 2336 /* Same deal here as the other #if 0. */
2337 #if 0 2337 #if 0
2338 /* Clicks on the handle are always reported as occuring at the top of 2338 /* Clicks on the handle are always reported as occurring at the top of
2339 the handle. */ 2339 the handle. */
2340 if (emacs_event->part == scroll_bar_handle) 2340 if (emacs_event->part == scroll_bar_handle)
2341 emacs_event->x = bar->start; 2341 emacs_event->x = bar->start;
2342 else 2342 else
2343 XSET (emacs_event->x, Lisp_Int, y); 2343 XSET (emacs_event->x, Lisp_Int, y);
4312 4312
4313 if (! XWithdrawWindow (x_current_display, FRAME_X_WINDOW (f), 4313 if (! XWithdrawWindow (x_current_display, FRAME_X_WINDOW (f),
4314 DefaultScreen (x_current_display))) 4314 DefaultScreen (x_current_display)))
4315 { 4315 {
4316 UNBLOCK_INPUT_RESIGNAL; 4316 UNBLOCK_INPUT_RESIGNAL;
4317 error ("can't notify window manager of window withdrawl"); 4317 error ("can't notify window manager of window withdrawal");
4318 } 4318 }
4319 4319
4320 #else /* ! defined (HAVE_X11R4) */ 4320 #else /* ! defined (HAVE_X11R4) */
4321 #ifdef HAVE_X11 4321 #ifdef HAVE_X11
4322 4322