diff src/xfns.c @ 7791:2b4e4a76468b

(using_x_p): New function.
author Richard M. Stallman <rms@gnu.org>
date Sun, 05 Jun 1994 11:55:49 +0000
parents be3423efbdce
children f127eb11ea7f
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.  */