changeset 7791:2b4e4a76468b

(using_x_p): New function.
author Richard M. Stallman <rms@gnu.org>
date Sun, 05 Jun 1994 11:55:49 +0000
parents 75153e2d5d85
children 1335cec8a016
files src/xfns.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Jun 05 11:55:23 1994 +0000
+++ b/src/xfns.c	Sun Jun 05 11:55:49 1994 +0000
@@ -249,6 +249,14 @@
     error ("X windows are not in use or not initialized");
 }
 
+/* Nonzero if using X for display.  */
+
+int
+using_x_p ()
+{
+  return x_current_display != 0;
+}
+
 /* Return the Emacs frame-object corresponding to an X window.
    It could be the frame's main window or an icon window.  */