diff options
| author | Richard M. Stallman | 1994-06-05 11:55:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-05 11:55:49 +0000 |
| commit | 75cc8ee527b1d406cba964413f7d10ecfedd8716 (patch) | |
| tree | 110bfab12054a04fa2362de2bcfc588cc09894b3 /src | |
| parent | 588064ce4ea9da3943a19342934de0c25bd4bb62 (diff) | |
| download | emacs-75cc8ee527b1d406cba964413f7d10ecfedd8716.tar.gz emacs-75cc8ee527b1d406cba964413f7d10ecfedd8716.zip | |
(using_x_p): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 8 |
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 | |||
| 254 | int | ||
| 255 | using_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 | ||