Mercurial > emacs
changeset 7249:876b3518fa78
(x-handle-geometry): Specify user-position and
user-size properties when appropriate.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 01 May 1994 08:55:23 +0000 |
parents | 48ef5c3465ae |
children | 67bb3bb1b62d |
files | lisp/term/x-win.el |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/term/x-win.el Sun May 01 07:39:02 1994 +0000 +++ b/lisp/term/x-win.el Sun May 01 08:55:23 1994 +0000 @@ -169,10 +169,15 @@ ;; Handle the geometry option (defun x-handle-geometry (switch) - (setq initial-frame-alist - (append initial-frame-alist - (x-parse-geometry (car x-invocation-args))) - x-invocation-args (cdr x-invocation-args))) + (let ((geo (x-parse-geometry (car x-invocation-args)))) + (setq initial-frame-alist + (append initial-frame-alist + (if (or (assq 'left geo) (assq 'top geo)) + '((user-position . t))) + (if (or (assq 'height geo) (assq 'width geo)) + '((user-size . t))) + geo) + x-invocation-args (cdr x-invocation-args)))) ;; Handle the -name and -rn options. Set the variable x-resource-name ;; to the option's operand; if the switch was `-name', set the name of