From 9af0f4cde51bc0d68490ae64565a3524b108d063 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 7 Mar 2000 23:31:17 +0000 Subject: [PATCH] (other-frame): Call x-focus-frame. --- lisp/frame.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lisp/frame.el b/lisp/frame.el index d89798285f..e3fd95a5df 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -574,13 +574,16 @@ A negative ARG moves in the opposite order." (while (not (eq (frame-visible-p frame) t)) (setq frame (previous-frame frame))) (setq arg (1+ arg))) - (raise-frame frame) (select-frame frame) + (raise-frame frame) ;; Ensure, if possible, that frame gets input focus. - (if (eq window-system 'w32) - (w32-focus-frame frame) - (when focus-follows-mouse - (set-mouse-position (selected-frame) (1- (frame-width)) 0))))) + (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)))) (defun make-frame-names-alist () (let* ((current-frame (selected-frame)) -- 2.20.1