aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-07 23:31:17 +0000
committerGerd Moellmann2000-03-07 23:31:17 +0000
commit9af0f4cde51bc0d68490ae64565a3524b108d063 (patch)
tree5292d9f5ee1d72b535fb723d9b49e1636c35aa49
parent3decc1e7f54cad2323b9d3279c0529ee98afd514 (diff)
downloademacs-9af0f4cde51bc0d68490ae64565a3524b108d063.tar.gz
emacs-9af0f4cde51bc0d68490ae64565a3524b108d063.zip
(other-frame): Call x-focus-frame.
-rw-r--r--lisp/frame.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index d89798285f7..e3fd95a5df0 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -574,13 +574,16 @@ A negative ARG moves in the opposite order."
574 (while (not (eq (frame-visible-p frame) t)) 574 (while (not (eq (frame-visible-p frame) t))
575 (setq frame (previous-frame frame))) 575 (setq frame (previous-frame frame)))
576 (setq arg (1+ arg))) 576 (setq arg (1+ arg)))
577 (raise-frame frame)
578 (select-frame frame) 577 (select-frame frame)
578 (raise-frame frame)
579 ;; Ensure, if possible, that frame gets input focus. 579 ;; Ensure, if possible, that frame gets input focus.
580 (if (eq window-system 'w32) 580 (cond ((eq window-system 'x)
581 (w32-focus-frame frame) 581 (x-focus-frame frame))
582 (when focus-follows-mouse 582 ((eq window-system 'w32)
583 (set-mouse-position (selected-frame) (1- (frame-width)) 0))))) 583 (w32-focus-frame frame)))
584 (when (and (not (eq window-system 'w32))
585 focus-follows-mouse)
586 (set-mouse-position (selected-frame) (1- (frame-width)) 0))))
584 587
585(defun make-frame-names-alist () 588(defun make-frame-names-alist ()
586 (let* ((current-frame (selected-frame)) 589 (let* ((current-frame (selected-frame))