summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-03-25 02:54:23 +0000
committerJim Blandy <jimb@redhat.com>1993-03-25 02:54:23 +0000
commitd460af17a8a1a8ff264b22c91a9652d8c45df435 (patch)
tree552054e6f9e9223b2eb9e016ce28de177112ba04
parent35014b9f539701e4b1be1bd051a5662064a6b8ba (diff)
downloademacs-d460af17a8a1a8ff264b22c91a9652d8c45df435.tar.gz
* dispnew.c (init_display): Get display name from environment
properly on VMS as well as Unix.
-rw-r--r--src/dispnew.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index c106c32980d..25eccf95967 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1994,7 +1994,15 @@ init_display ()
with an error message if that doesn't work. */
#ifdef HAVE_X_WINDOWS
- if (!inhibit_window_system && (display_arg || getenv ("DISPLAY")))
+ if (! display_arg)
+ {
+#ifdef VMS
+ display_arg = getenv ("DECW$DISPLAY");
+#else
+ display_arg = getenv ("DISPLAY");
+#endif
+
+ if (!inhibit_window_system && display_arg)
{
Vwindow_system = intern ("x");
#ifdef HAVE_X11