summaryrefslogtreecommitdiff
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-06-09 15:42:08 +0000
committerKarl Heuer <kwzh@gnu.org>1995-06-09 15:42:08 +0000
commitd17bf212b03412149873599e9346ea7d8e60cb3f (patch)
treea29c5aab39e4a67f8664675eda88dcb10281b601 /lisp/faces.el
parent438ffabc7a2f3e569f8f4160345797c0b649191a (diff)
downloademacs-d17bf212b03412149873599e9346ea7d8e60cb3f.tar.gz
(x-create-frame-with-faces): Don't use initial-frame-alist
when looking for the X resource name. Copy parameters from default-frame-alist, before the geometry specs from the X resource database.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 686df68b5e5..990886afd9f 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -941,8 +941,7 @@ selected frame."
;; Read this frame's geometry resource, if it has an explicit name,
;; and put the specs into PARAMETERS.
(let* ((name (or (cdr (assq 'name parameters))
- (cdr (assq 'name default-frame-alist))
- (cdr (assq 'name initial-frame-alist))))
+ (cdr (assq 'name default-frame-alist))))
(x-resource-name name)
(res-geometry (if name (x-get-resource "geometry" "Geometry")))
parsed)
@@ -954,8 +953,11 @@ selected frame."
(if (or (assq 'top parsed) (assq 'left parsed))
(setq parsed (cons '(user-position . t)
(cons '(user-size . t) parsed))))
- ;; All geometry parms apply to the initial frame.
- (setq parameters (append parameters parsed)))))
+ ;; Put the geometry parameters at the end.
+ ;; Copy default-frame-alist so that they go after it.
+ (setq parameters (append parameters
+ default-frame-alist
+ parsed)))))
(if (null global-face-data)
(x-create-frame parameters)
(let* ((visibility-spec (assq 'visibility parameters))