aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorAndreas Schwab2006-03-20 22:41:23 +0000
committerAndreas Schwab2006-03-20 22:41:23 +0000
commitc1fc674b45aa1f241c0703207ac30b7ec79beea3 (patch)
tree0ce2d9a0f616763df1f605d3ddd73ee40c9a3166 /src/xterm.c
parent7d6194544ec237070423a6edb3a3011931d177d9 (diff)
downloademacs-c1fc674b45aa1f241c0703207ac30b7ec79beea3.tar.gz
emacs-c1fc674b45aa1f241c0703207ac30b7ec79beea3.zip
* dispnew.c (init_display): Check DISPLAY here.
* emacs.c (main): Don't check here. * xterm.c (x_display_ok): Don't use DISPLAY env var.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 368f9c1a6d3..298b1c2e63d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10123,12 +10123,8 @@ x_display_ok (display)
10123 int dpy_ok = 1; 10123 int dpy_ok = 1;
10124 Display *dpy; 10124 Display *dpy;
10125 10125
10126 if (!display) 10126 dpy = XOpenDisplay (display);
10127 display = getenv("DISPLAY"); 10127 if (dpy)
10128 if (!display)
10129 return 0;
10130
10131 if ((dpy = XOpenDisplay (display)))
10132 XCloseDisplay (dpy); 10128 XCloseDisplay (dpy);
10133 else 10129 else
10134 dpy_ok = 0; 10130 dpy_ok = 0;