diff options
| -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) |