# HG changeset patch # User Richard M. Stallman # Date 767782523 0 # Node ID 876b3518fa78d9b00a0a90d580f290ab4c82013f # Parent 48ef5c3465ae6f0d8665180bc8b02763a2ddbba5 (x-handle-geometry): Specify user-position and user-size properties when appropriate. diff -r 48ef5c3465ae -r 876b3518fa78 lisp/term/x-win.el --- 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