aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-05 11:55:49 +0000
committerRichard M. Stallman1994-06-05 11:55:49 +0000
commit75cc8ee527b1d406cba964413f7d10ecfedd8716 (patch)
tree110bfab12054a04fa2362de2bcfc588cc09894b3 /src
parent588064ce4ea9da3943a19342934de0c25bd4bb62 (diff)
downloademacs-75cc8ee527b1d406cba964413f7d10ecfedd8716.tar.gz
emacs-75cc8ee527b1d406cba964413f7d10ecfedd8716.zip
(using_x_p): New function.
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