(defun select-frame-set-input-focus (frame)
"Select FRAME, raise it, and set input focus, if possible."
(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-s
> There are window managers that does not allow focus changes outside the
> window
> that has the mouse in it, if focus follows mouse. Metacity and sawfish
> calls this mode focus-follows-mouse-strict. In that case, the code
> above moves the mouse to the new window so it gets the focus. It is
> Date: Sat, 15 Jul 2006 16:00:03 +0200
> From: martin rudalics <[EMAIL PROTECTED]>
> CC: Eli Zaretskii <[EMAIL PROTECTED]>, emacs-pretest-bug@gnu.org
>
> I think Windows never had a thing like "focus-follows-mouse-strict" or
> "focus-under-mouse". Windows' official non-click philosophy is to
>
>> ... you have to explicitly click on the desktop in order
>>to "give it focus".
>
>
> That's the default, yes. But one can tweak the Registry to force
> Windows behave more like X, in that just entering a window with the
> mouse gives it focus. (I do this on any Windows machine I need to
> wor