]> git.eshelyaron.com Git - emacs.git/commitdiff
(other-frame): Call x-focus-frame only if
authorGerd Moellmann <gerd@gnu.org>
Fri, 17 Mar 2000 20:54:41 +0000 (20:54 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 17 Mar 2000 20:54:41 +0000 (20:54 +0000)
focus-follows-mouse is off.

lisp/frame.el

index e3fd95a5df03ad48492abfe47111ddfa3308deaa..cdfb9551aced83c3ab1a8bd1c2e067b72d5f3f0f 100644 (file)
@@ -577,13 +577,14 @@ A negative ARG moves in the opposite order."
     (select-frame frame)
     (raise-frame frame)
     ;; Ensure, if possible, that frame gets input focus.
-    (cond ((eq window-system 'x)
-          (x-focus-frame frame))
-         ((eq window-system 'w32)
-          (w32-focus-frame frame)))
-    (when (and (not (eq window-system 'w32))
-              focus-follows-mouse)
-      (set-mouse-position (selected-frame) (1- (frame-width)) 0))))
+    (when (eq window-system 'w32)
+      (w32-focus-frame frame))
+    (cond (focus-follows-mouse
+          (unless (eq window-system 'w32)
+            (set-mouse-position (selected-frame) (1- (frame-width)) 0)))
+         (t
+          (when (eq window-system 'x)
+            (x-focus-frame frame))))))
 
 (defun make-frame-names-alist ()
   (let* ((current-frame (selected-frame))