unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman.073@student.lu.se>
Cc: Stephan Stahl <stahl@eos.franken.de>,
	Eli Zaretskii <eliz@gnu.org>,
	snogglethorpe@gmail.com, emacs-devel@gnu.org, miles@gnu.org
Subject: Re: Tooltips on w32 slow and strange
Date: Tue, 15 Feb 2005 14:43:20 +0100	[thread overview]
Message-ID: <01d301c51364$92cddef0$0200a8c0@sedrcw11488> (raw)
In-Reply-To: 4051.217.194.34.123.1108462308.squirrel@wwws.franken.de

----- Original Message ----- 
From: "Stephan Stahl" <stahl@eos.franken.de>

> But C-x 5 2 seems to do this too.  The frame gets the focus and is shown
on
> top of all other windows.  But there still seems to be a difference since
> Alt-tab makes popups go wrong while C-x 5 2 does not..  I do not know the
> code for both but maybe some other has more insight then me..

I think this helped me to realize what is happening. I am not quite sure but
I believe this is a good guess:

*** This is where the tooltip window gets created (I did not check further
to see if it where reused, but the timings suggests to me it is not):

>>>> w32fns.c >>>>
void
my_create_tip_window (f)
     struct frame *f;
{
...
  tip_window = FRAME_W32_WINDOW (f)
    = CreateWindow (EMACS_CLASS,
...
      FRAME_W32_WINDOW (SELECTED_FRAME ()), /* owner */
...
      NULL);
...
}


*** There is a SELECTED_FRAME above. As far as I understands it
SELECTED_FRAME is set by operations that Emacs recognize.

*** Emacs does not recognize Alt-Tab. This is the real problem and the case
we have here is just a special problem with its root in this.


I actually wrote about this when we discussed "Popup when buffer file is
changed on disk" which Moheb brought up. I implemented some code to take
care of this (but maybe it was on the wrong level).

I would suggest taking care of the message w32 sends when the user press
Alt-Tab. (This is some kind of "got focus message", but I do not know the
name at the moment.) The best would IMO to make a hook that is run when the
message is received. It could then be used to solve problems like "Popup
..." above too.

I am a bit surprised that this does not seem to happen on other platforms.
Or does it? I can not understand why, can anyone explain?

  parent reply	other threads:[~2005-02-15 13:43 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-13  0:21 Tooltips on w32 slow and strange Lennart Borgman
2005-02-13 18:21 ` Stefan Daschek
2005-02-14  8:15 ` Stephan Stahl
2005-02-14  9:58   ` Jason Rumney
2005-02-14 10:13     ` Stephan Stahl
2005-02-14 10:27       ` Jason Rumney
2005-02-14 12:26     ` David Kastrup
2005-02-14 13:07       ` Jason Rumney
2005-02-14 14:41         ` Lennart Borgman
2005-02-14 15:19           ` Jason Rumney
2005-02-14 18:02             ` Lennart Borgman
2005-02-14 15:02       ` Miles Bader
2005-02-14 15:47         ` David Kastrup
2005-02-14 15:57           ` Ralf Angeli
2005-02-14 17:16             ` David Kastrup
2005-02-14 17:29               ` Jason Rumney
2005-02-14 17:39               ` Reiner Steib
2005-02-14 18:29                 ` Stefan Monnier
2005-02-14 17:56               ` Ralf Angeli
2005-02-14 18:55             ` Jan D.
2005-02-14 19:44               ` Ralf Angeli
2005-02-14 19:59                 ` Jan D.
2005-02-14 20:14                 ` David Kastrup
2005-02-15  8:15                   ` Ralf Angeli
2005-02-16  1:02         ` Oliver Scholz
2005-02-14 18:42       ` Jan D.
2005-02-14 18:50         ` David Kastrup
2005-02-14 19:02           ` Jan D.
2005-02-14 13:54     ` Lennart Borgman
2005-02-14 15:08       ` Miles Bader
2005-02-14 20:28         ` Eli Zaretskii
2005-02-14 23:48           ` Miles Bader
2005-02-14 23:58             ` Jason Rumney
2005-02-15  0:27               ` David Kastrup
2005-02-15  0:01             ` Lennart Borgman
2005-02-15  0:47             ` Kenichi Handa
2005-02-15  6:19               ` Jan D.
2005-02-15 16:29                 ` Stefan Monnier
2005-02-15  4:45             ` Eli Zaretskii
2005-02-15  8:53               ` Stephan Stahl
2005-02-15 10:02                 ` Jason Rumney
2005-02-15 10:11                   ` Stephan Stahl
2005-02-15 10:31                     ` Jason Rumney
2005-02-15 13:43                     ` Lennart Borgman [this message]
2005-02-15 14:19                       ` Jason Rumney
2005-02-15 15:31                         ` Lennart Borgman
2005-02-15 20:03                 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2005-03-08  9:07 Stephan Stahl
2005-03-08 10:40 ` Stephan Stahl
2005-03-08 12:43 ` Jason Rumney
2005-03-08 15:42 ` Lennart Borgman

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='01d301c51364$92cddef0$0200a8c0@sedrcw11488' \
    --to=lennart.borgman.073@student.lu.se \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=snogglethorpe@gmail.com \
    --cc=stahl@eos.franken.de \
    /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).