aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-08-24 02:59:27 +0000
committerRichard M. Stallman2002-08-24 02:59:27 +0000
commit80c39c38bb8ffa0b3ee0dba317fec0c32a32c556 (patch)
tree26d11e4b378ae47382f912c4f36befe41151452f
parenta2c4ae01567bac62988eab57b4043eff21255819 (diff)
downloademacs-80c39c38bb8ffa0b3ee0dba317fec0c32a32c556.tar.gz
emacs-80c39c38bb8ffa0b3ee0dba317fec0c32a32c556.zip
(select-frame-by-name, select-frame-set-input-focus):
Always call x-focus-frame, if using x. Use set-mouse-position on all systems, if focus-follows-mouse.
-rw-r--r--lisp/frame.el22
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 1c7ab99cb6d..6969c14b855 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -654,14 +654,12 @@ automatically."
654 (select-frame frame) 654 (select-frame frame)
655 (raise-frame frame) 655 (raise-frame frame)
656 ;; Ensure, if possible, that frame gets input focus. 656 ;; Ensure, if possible, that frame gets input focus.
657 (when (eq window-system 'w32) 657 (cond ((eq window-system 'x)
658 (w32-focus-frame frame)) 658 (x-focus-frame frame))
659 ((eq window-system 'w32)
660 (w32-focus-frame frame)))
659 (cond (focus-follows-mouse 661 (cond (focus-follows-mouse
660 (unless (eq window-system 'w32) 662 (set-mouse-position (selected-frame) (1- (frame-width)) 0))))
661 (set-mouse-position (selected-frame) (1- (frame-width)) 0)))
662 (t
663 (when (eq window-system 'x)
664 (x-focus-frame frame)))))
665 663
666(defun other-frame (arg) 664(defun other-frame (arg)
667 "Select the ARG'th different visible frame on current display, and raise it. 665 "Select the ARG'th different visible frame on current display, and raise it.
@@ -721,10 +719,12 @@ If there is no frame by that name, signal an error."
721 (raise-frame frame) 719 (raise-frame frame)
722 (select-frame frame) 720 (select-frame frame)
723 ;; Ensure, if possible, that frame gets input focus. 721 ;; Ensure, if possible, that frame gets input focus.
724 (if (eq window-system 'w32) 722 (cond ((eq window-system 'x)
725 (w32-focus-frame frame) 723 (x-focus-frame frame))
726 (when focus-follows-mouse 724 ((eq window-system 'w32)
727 (set-mouse-position (selected-frame) (1- (frame-width)) 0))))) 725 (w32-focus-frame frame)))
726 (when focus-follows-mouse
727 (set-mouse-position frame (1- (frame-width frame)) 0))))
728 728
729;;;; Frame configurations 729;;;; Frame configurations
730 730