Commit 5b620012 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(other-frame): Call x-focus-frame only if

focus-follows-mouse is off.
parent af595444
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment