aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 1693807e9f0..4e3144e5dc4 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -249,6 +249,14 @@ check_x ()
249 error ("X windows are not in use or not initialized"); 249 error ("X windows are not in use or not initialized");
250} 250}
251 251
252/* Nonzero if using X for display. */
253
254int
255using_x_p ()
256{
257 return x_current_display != 0;
258}
259
252/* Return the Emacs frame-object corresponding to an X window. 260/* Return the Emacs frame-object corresponding to an X window.
253 It could be the frame's main window or an icon window. */ 261 It could be the frame's main window or an icon window. */
254 262