aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/xterm.c b/src/xterm.c
index db2b3559a7c..1dba5829394 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1076,7 +1076,7 @@ XTcursor_to (vpos, hpos, y, x)
1076 { 1076 {
1077 BLOCK_INPUT; 1077 BLOCK_INPUT;
1078 x_display_cursor (w, 1, hpos, vpos, x, y); 1078 x_display_cursor (w, 1, hpos, vpos, x, y);
1079 XFlush (FRAME_X_DISPLAY (selected_frame)); 1079 XFlush (FRAME_X_DISPLAY (SELECTED_FRAME ()));
1080 UNBLOCK_INPUT; 1080 UNBLOCK_INPUT;
1081 } 1081 }
1082} 1082}
@@ -4739,7 +4739,7 @@ x_clear_end_of_line (to_x)
4739 4739
4740 4740
4741/* Clear entire frame. If updating_frame is non-null, clear that 4741/* Clear entire frame. If updating_frame is non-null, clear that
4742 frame. Otherwise clear selected_frame. */ 4742 frame. Otherwise clear the selected frame. */
4743 4743
4744static void 4744static void
4745x_clear_frame () 4745x_clear_frame ()
@@ -4749,7 +4749,7 @@ x_clear_frame ()
4749 if (updating_frame) 4749 if (updating_frame)
4750 f = updating_frame; 4750 f = updating_frame;
4751 else 4751 else
4752 f = selected_frame; 4752 f = SELECTED_FRAME ();
4753 4753
4754 /* Clearing the frame will erase any cursor, so mark them all as no 4754 /* Clearing the frame will erase any cursor, so mark them all as no
4755 longer visible. */ 4755 longer visible. */
@@ -4946,24 +4946,24 @@ XTflash (f)
4946 4946
4947/* Make audible bell. */ 4947/* Make audible bell. */
4948 4948
4949#define XRINGBELL XBell (FRAME_X_DISPLAY (selected_frame), 0)
4950
4951void 4949void
4952XTring_bell () 4950XTring_bell ()
4953{ 4951{
4954 if (FRAME_X_DISPLAY (selected_frame) == 0) 4952 struct frame *f = SELECTED_FRAME ();
4955 return; 4953
4956 4954 if (FRAME_X_DISPLAY (f))
4955 {
4957#if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT) 4956#if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT)
4958 if (visible_bell) 4957 if (visible_bell)
4959 XTflash (selected_frame); 4958 XTflash (f);
4960 else 4959 else
4961#endif 4960#endif
4962 { 4961 {
4963 BLOCK_INPUT; 4962 BLOCK_INPUT;
4964 XRINGBELL; 4963 XBell (FRAME_X_DISPLAY (f), 0);
4965 XFlush (FRAME_X_DISPLAY (selected_frame)); 4964 XFlush (FRAME_X_DISPLAY (f));
4966 UNBLOCK_INPUT; 4965 UNBLOCK_INPUT;
4966 }
4967 } 4967 }
4968} 4968}
4969 4969
@@ -6979,7 +6979,7 @@ XTmouse_position (fp, insist, bar_window, part, x, y, time)
6979 } 6979 }
6980 6980
6981 if (f1 == 0 && insist > 0) 6981 if (f1 == 0 && insist > 0)
6982 f1 = selected_frame; 6982 f1 = SELECTED_FRAME ();
6983 6983
6984 if (f1) 6984 if (f1)
6985 { 6985 {
@@ -8765,7 +8765,7 @@ XTread_socket (sd, bufp, numchars, expected)
8765 8765
8766 /* This is just so we only give real data once 8766 /* This is just so we only give real data once
8767 for a single Emacs process. */ 8767 for a single Emacs process. */
8768 if (f == selected_frame) 8768 if (f == SELECTED_FRAME ())
8769 XSetCommand (FRAME_X_DISPLAY (f), 8769 XSetCommand (FRAME_X_DISPLAY (f),
8770 event.xclient.window, 8770 event.xclient.window,
8771 initial_argv, initial_argc); 8771 initial_argv, initial_argc);