aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2007-09-18 22:17:29 +0000
committerJason Rumney2007-09-18 22:17:29 +0000
commit31e0520c902021cc7e79818ac2d3eeca3f131a1e (patch)
tree7092dc219eda93c8a5780006d0f0178f8c37e15e
parent334a1195ab0712ba1254f4b396a1ac283ffd16c8 (diff)
downloademacs-31e0520c902021cc7e79818ac2d3eeca3f131a1e.tar.gz
emacs-31e0520c902021cc7e79818ac2d3eeca3f131a1e.zip
(select-frame-set-input-focus, select-frame-by-name): Use x-focus-frame for w32.
-rw-r--r--lisp/frame.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index e9d9489fb63..40e2a041ecf 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -818,10 +818,8 @@ This variable does not have any effect on MS-Windows."
818 (select-frame frame) 818 (select-frame frame)
819 (raise-frame frame) 819 (raise-frame frame)
820 ;; Ensure, if possible, that frame gets input focus. 820 ;; Ensure, if possible, that frame gets input focus.
821 (cond ((memq (window-system frame) '(x max)) 821 (cond ((memq (window-system frame) '(x max w32))
822 (x-focus-frame frame)) 822 (x-focus-frame frame)))
823 ((eq (window-system frame) 'w32)
824 (w32-focus-frame frame)))
825 (cond (focus-follows-mouse 823 (cond (focus-follows-mouse
826 (set-mouse-position (selected-frame) (1- (frame-width)) 0)))) 824 (set-mouse-position (selected-frame) (1- (frame-width)) 0))))
827 825
@@ -905,10 +903,8 @@ If there is no frame by that name, signal an error."
905 (raise-frame frame) 903 (raise-frame frame)
906 (select-frame frame) 904 (select-frame frame)
907 ;; Ensure, if possible, that frame gets input focus. 905 ;; Ensure, if possible, that frame gets input focus.
908 (cond ((eq (window-system frame) 'x) 906 (cond ((memq (window-system frame) '(x w32))
909 (x-focus-frame frame)) 907 (x-focus-frame frame)))
910 ((eq (window-system frame) 'w32)
911 (w32-focus-frame frame)))
912 (when focus-follows-mouse 908 (when focus-follows-mouse
913 (set-mouse-position frame (1- (frame-width frame)) 0)))) 909 (set-mouse-position frame (1- (frame-width frame)) 0))))
914 910