From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Q on frame focus with MS Windows
Date: Tue, 25 Oct 2005 23:45:38 +0200 [thread overview]
Message-ID: <435EA782.6090001@student.lu.se> (raw)
In-Reply-To: <MEEKKIABFKKDFJMPIOEBKECPCNAA.drew.adams@oracle.com>
Drew Adams wrote:
>What I'm looking for is:
>
>1. To understand this better. Just what is the nature/cause of the problem?
>
>2. A way (workaround) to deal with this problem - something that will keep
>the input focus in the minibuffer for as long as the minibuffer is active.
>(So, for instance, if done by redirect-frame-focus, I would want that undone
>after the minibuffer is inactivated.)
>
>3. If this is a bug in some sense, which could be fixed in Emacs, that would
>be great. However, I also need this to work in other versions of Emacs, so I
>would still want the workaround (#2).
>
>Any help is appreciated.
>
>
I am not sure here, but I dived into the C code to see what might be
happening. If I understand this correct (which I am not sure about at
all) this happens:
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
SW_SHOWNORMAL
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.
***************
A workaround is maybe to use `after-make-frame-functions'?
next prev parent reply other threads:[~2005-10-25 21:45 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 [this message]
2005-10-25 21:57 ` Drew Adams
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=435EA782.6090001@student.lu.se \
--to=lennart.borgman.073@student.lu.se \
--cc=emacs-devel@gnu.org \
/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).