unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Q on frame focus with MS Windows
Date: Tue, 25 Oct 2005 14:57:05 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICAEPPCNAA.drew.adams@oracle.com> (raw)
In-Reply-To: <435EA782.6090001@student.lu.se>

    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	other threads:[~2005-10-25 21:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25 20:33 Q on frame focus with MS Windows Drew Adams
2005-10-25 21:45 ` Lennart Borgman
2005-10-25 21:57   ` Drew Adams [this message]
2005-10-25 22:21     ` Lennart Borgman
2005-10-25 23:43       ` Drew Adams
2005-10-26  7:03         ` Lennart Borgman
2005-10-26 15:15           ` Drew Adams
2005-10-26 15:30             ` Lennart Borgman
2005-10-26 16:01               ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICAEPPCNAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).