]> git.eshelyaron.com Git - emacs.git/commitdiff
(using_x_p): New function.
authorRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 11:55:49 +0000 (11:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 11:55:49 +0000 (11:55 +0000)
src/xfns.c

index 1693807e9f0799c2672738f160aeb541dc0391d1..4e3144e5dc42a79032239765db2b97d69e8b8ae6 100644 (file)
@@ -249,6 +249,14 @@ check_x ()
     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.  */