summaryrefslogtreecommitdiff
path: root/lisp/frame.el
diff options
context:
space:
mode:
authorDaniel Colascione <dancol@dancol.org>2012-10-19 19:42:02 -0800
committerDaniel Colascione <dancol@dancol.org>2012-10-19 19:42:02 -0800
commit1a6e7e3807367b94c144d06fc2bdd1eb195731f7 (patch)
tree91a1db9d0fc9e6726433419b4ad6c1365b2dc9c5 /lisp/frame.el
parentf0a801750151bee7fdcf96dff272986e627fb3e3 (diff)
downloademacs-1a6e7e3807367b94c144d06fc2bdd1eb195731f7.tar.gz
Unbreak starting an X11 frame from a non-X11 Emacs daemon
Diffstat (limited to 'lisp/frame.el')
-rw-r--r--lisp/frame.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index b7b61bcc576..7a54efc23e7 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -655,6 +655,8 @@ the new frame according to its own rules."
(error "Don't know how to create a frame on window system %s" w))
(unless (get w 'window-system-initialized)
+ (unless x-display-name
+ (setq x-display-name display))
(funcall (cdr (assq w window-system-initialization-alist)))
(put w 'window-system-initialized t))