emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Q on frame focus with MS Windows


From: Drew Adams
Subject: RE: Q on frame focus with MS Windows
Date: Tue, 25 Oct 2005 14:57:05 -0700

    1) A frame is created through a call to x-create-frame.
    2) This calls x_make_frame_visible
    3) There is a call to my_show_window with a parameter that is
    SW_SHOWNORMAL which I guess is later given to the w32 API ShowWindow or
    something similar.

    The documentation for SW_SHOWNORMAL says
        Activates and displays a window. If the window is minimized or
        maximized, the system restores it to its original size and position.
        An application should specify this flag when displaying the window
        for the first time.

    I am not sure about what "activates" mean here but I believe it
    was that it will get the keyboard input focus. And I wonder if
    the documentation is correct when it sounds that you have to use
    SW_SHOWNORMAL.

My understanding is that it is the MS Windows window-manager that
automatically selects/focusses the new frame, and that that cannot be
prevented from within Emacs. If there is a way to inhibit this behavior,
that would be even better than getting the focus back after it has been
given to the new frame.

But I don't understand what you are suggesting I do - at all.

       A workaround is maybe to use `after-make-frame-functions'?

I already mentioned that I tried that. What do you suggest I put in that
hook, concretely? I tried reselecting the original buffer/window/frame and
the minibuffer, none of which seemed to work.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]