unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: Chong Yidong <cyd@stupidchicken.com>,
	"Kim F. Storm" <storm@cua.dk>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Tool-bar buttons unresponsive with tooltips on
Date: Tue, 25 Oct 2005 19:04:46 +0200	[thread overview]
Message-ID: <C2E002FD-0198-4408-8C98-81718DB4D5B2@swipnet.se> (raw)
In-Reply-To: <u64rnnz3x.fsf@jasonrumney.net>


> "Jan D." <jan.h.d@swipnet.se> writes:
>
>>
>> The reason is that showing the tip window generates an EnterNotify
>> event that clears dpyinfo->mouse_face_window (sets to Qnil).
>>
>
> Why does it do that? tooltip windows should not affect any window
> states.

Probably an old leftover.  There should be a C variable to identify  
tip frames, like the hourglass_p variable.

>
>
>> note_mouse_highlight calls note_tool_bar_highlight and that function
>> sets mouse_face_window again to the tool bar window.  Later when
>> checking if the click is in the tool bar, it is only recognised as a
>> tool bar click if mouse_face_window is eq to the tool bar window.
>>
>> Now, window managers are free to generate EnterNotify whenever they
>> want and it seems that KDE generates one more than it used to, and
>> also more than other window managers.  This is not a bug however.
>>
>
> The EnterNotify may not be a bug, but the way we handle it is.
> We should test for tip_window and avoid doing certain things, the same
> way we do for other events.

Kim checked in another fix that works.

     Jan D.

  reply	other threads:[~2005-10-25 17:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-19  8:39 [Chong Yidong] Re: Tool-bar buttons unresponsive with tooltips on David PONCE
2005-10-19 17:31 ` Jan D.
2005-10-19 17:57   ` Jan D.
2005-10-19 22:49     ` Chong Yidong
2005-10-20  9:06       ` Eli Zaretskii
2005-10-20 13:45       ` Kim F. Storm
2005-10-20 14:46         ` Chong Yidong
2005-10-23 21:14           ` Jan D.
2005-10-23 21:54             ` Jason Rumney
2005-10-24  5:02               ` Jan D.
2005-10-24  7:38                 ` Jason Rumney
2005-10-25 17:04                   ` Jan D. [this message]
2005-10-24  9:17             ` Kim F. Storm
2005-10-24 12:46               ` Chong Yidong
2005-10-24 21:44                 ` Kim F. Storm
  -- strict thread matches above, loose matches on Subject: below --
2005-10-14 20:27 Chong Yidong
2005-10-15 14:15 ` Chong Yidong

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=C2E002FD-0198-4408-8C98-81718DB4D5B2@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=storm@cua.dk \
    /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).