diff options
| author | Jim Blandy | 1993-05-27 05:38:12 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-27 05:38:12 +0000 |
| commit | 5d20eba6587bafb6c2020abc7c87e774a0218079 (patch) | |
| tree | 57bea25884c8aab3bf718e5939fde38aed86cf8f | |
| parent | c39d651c96fd3a90724da3b2c98f37d856e5e7e7 (diff) | |
| download | emacs-5d20eba6587bafb6c2020abc7c87e774a0218079.tar.gz emacs-5d20eba6587bafb6c2020abc7c87e774a0218079.zip | |
* x-win.el: Check for a geometry resource, and apply it to the
initial frame.
| -rw-r--r-- | lisp/term/x-win.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 84a09026618..06f7d375b74 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -521,6 +521,14 @@ This returns ARGS with the arguments that have been processed removed." | |||
| 521 | 521 | ||
| 522 | (setq frame-creation-function 'x-create-frame-with-faces) | 522 | (setq frame-creation-function 'x-create-frame-with-faces) |
| 523 | 523 | ||
| 524 | ;; Apply a geometry resource to the initial frame. Put it at the end | ||
| 525 | ;; of the alist, so that anything specified on the command line takes | ||
| 526 | ;; precedence. | ||
| 527 | (let ((res-geometry (x-get-resource "geometry" "Geometry"))) | ||
| 528 | (if res-geometry | ||
| 529 | (setq initial-frame-alist (append initial-frame-alist | ||
| 530 | (x-parse-geometry res-geometry))))) | ||
| 531 | |||
| 524 | (defun x-win-suspend-error () | 532 | (defun x-win-suspend-error () |
| 525 | (error "Suspending an emacs running under X makes no sense")) | 533 | (error "Suspending an emacs running under X makes no sense")) |
| 526 | (add-hook 'suspend-hook 'x-win-suspend-error) | 534 | (add-hook 'suspend-hook 'x-win-suspend-error) |