{
BLOCK_INPUT;
x_display_cursor (w, 1, hpos, vpos, x, y);
- XFlush (FRAME_X_DISPLAY (selected_frame));
+ XFlush (FRAME_X_DISPLAY (SELECTED_FRAME ()));
UNBLOCK_INPUT;
}
}
/* Clear entire frame. If updating_frame is non-null, clear that
- frame. Otherwise clear selected_frame. */
+ frame. Otherwise clear the selected frame. */
static void
x_clear_frame ()
if (updating_frame)
f = updating_frame;
else
- f = selected_frame;
+ f = SELECTED_FRAME ();
/* Clearing the frame will erase any cursor, so mark them all as no
longer visible. */
/* Make audible bell. */
-#define XRINGBELL XBell (FRAME_X_DISPLAY (selected_frame), 0)
-
void
XTring_bell ()
{
- if (FRAME_X_DISPLAY (selected_frame) == 0)
- return;
-
+ struct frame *f = SELECTED_FRAME ();
+
+ if (FRAME_X_DISPLAY (f))
+ {
#if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT)
- if (visible_bell)
- XTflash (selected_frame);
- else
+ if (visible_bell)
+ XTflash (f);
+ else
#endif
- {
- BLOCK_INPUT;
- XRINGBELL;
- XFlush (FRAME_X_DISPLAY (selected_frame));
- UNBLOCK_INPUT;
+ {
+ BLOCK_INPUT;
+ XBell (FRAME_X_DISPLAY (f), 0);
+ XFlush (FRAME_X_DISPLAY (f));
+ UNBLOCK_INPUT;
+ }
}
}
}
if (f1 == 0 && insist > 0)
- f1 = selected_frame;
+ f1 = SELECTED_FRAME ();
if (f1)
{
/* This is just so we only give real data once
for a single Emacs process. */
- if (f == selected_frame)
+ if (f == SELECTED_FRAME ())
XSetCommand (FRAME_X_DISPLAY (f),
event.xclient.window,
initial_argv, initial_argc);