diff options
| author | Richard M. Stallman | 1998-03-18 20:02:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-03-18 20:02:27 +0000 |
| commit | 26ef026df84546906a81ad42929962e6a2ea0fc8 (patch) | |
| tree | a554d7de02cd732416bcebd3188a863954ebecb7 | |
| parent | fe3188ecbd12e887dc41940328bbbac51652c6ca (diff) | |
| download | emacs-26ef026df84546906a81ad42929962e6a2ea0fc8.tar.gz emacs-26ef026df84546906a81ad42929962e6a2ea0fc8.zip | |
(focus-follows-mouse): New variable.
(other-frame): Obey that variable.
| -rw-r--r-- | lisp/frame.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 14da34c822e..2fbc53b9157 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -497,6 +497,9 @@ the user during startup." | |||
| 497 | (cdr param-list)) | 497 | (cdr param-list)) |
| 498 | 498 | ||
| 499 | 499 | ||
| 500 | (defvar focus-follows-mouse t | ||
| 501 | "*Non-nil if window system changes focus when you move the mouse.") | ||
| 502 | |||
| 500 | (defun other-frame (arg) | 503 | (defun other-frame (arg) |
| 501 | "Select the ARG'th different visible frame, and raise it. | 504 | "Select the ARG'th different visible frame, and raise it. |
| 502 | All frames are arranged in a cyclic order. | 505 | All frames are arranged in a cyclic order. |
| @@ -519,7 +522,8 @@ A negative ARG moves in the opposite order." | |||
| 519 | ;; Ensure, if possible, that frame gets input focus. | 522 | ;; Ensure, if possible, that frame gets input focus. |
| 520 | (if (eq window-system 'w32) | 523 | (if (eq window-system 'w32) |
| 521 | (w32-focus-frame frame) | 524 | (w32-focus-frame frame) |
| 522 | (set-mouse-position (selected-frame) (1- (frame-width)) 0)))) | 525 | (unless focus-follows-mouse |
| 526 | (set-mouse-position (selected-frame) (1- (frame-width)) 0))))) | ||
| 523 | 527 | ||
| 524 | (defun make-frame-names-alist () | 528 | (defun make-frame-names-alist () |
| 525 | (let* ((current-frame (selected-frame)) | 529 | (let* ((current-frame (selected-frame)) |