aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes1999-01-27 22:04:05 +0000
committerAndrew Innes1999-01-27 22:04:05 +0000
commit880a9ae1684345afa3409a5b57fd70730f91152f (patch)
tree11f3c9f84dc393ec364e06474b19fa30d40651fc
parent576ba81cd4e54cb648718b64294b967ee299dfb6 (diff)
downloademacs-880a9ae1684345afa3409a5b57fd70730f91152f.tar.gz
emacs-880a9ae1684345afa3409a5b57fd70730f91152f.zip
(select-frame-by-name): Obey focus-follows-mouse.
(select-frame-by-name) [windows-nt]: Use w32-focus-frame.
-rw-r--r--lisp/frame.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 8971ac94c35..d4947f4351b 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -565,7 +565,12 @@ If there is no frame by that name, signal an error."
565 (error "There is no frame named `%s'" name)) 565 (error "There is no frame named `%s'" name))
566 (make-frame-visible frame) 566 (make-frame-visible frame)
567 (raise-frame frame) 567 (raise-frame frame)
568 (select-frame frame))) 568 (select-frame frame)
569 ;; Ensure, if possible, that frame gets input focus.
570 (if (eq window-system 'w32)
571 (w32-focus-frame frame)
572 (when focus-follows-mouse
573 (set-mouse-position (selected-frame) (1- (frame-width)) 0)))))
569 574
570;;;; Frame configurations 575;;;; Frame configurations
571 576