unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Chong Yidong] Re: Tool-bar buttons unresponsive with tooltips on
@ 2005-10-16 22:59 Kim F. Storm
  2005-10-17  7:36 ` Jason Rumney
  0 siblings, 1 reply; 12+ messages in thread
From: Kim F. Storm @ 2005-10-16 22:59 UTC (permalink / raw)



Jason,

Can you explain why you added that specific line.

I can see that it looks like a reasonable thing to do,
but Chong has problems with it (I don't).

What problem was it supposed to fix?


> From: Chong Yidong <cyd@stupidchicken.com>
>  
> The bug goes away if I remove the indicated line in
> note_mouse_movement, in xterm.c.
>  
>     /* Has the mouse moved off the glyph it was on at the last sighting?  */
>     if (event->x < last_mouse_glyph.x
>            || event->x >= last_mouse_glyph.x + last_mouse_glyph.width
>            || event->y < last_mouse_glyph.y
>            || event->y >= last_mouse_glyph.y + last_mouse_glyph.height)
>       {
>         frame->mouse_moved = 1;
>         last_mouse_scroll_bar = Qnil;
>         note_mouse_highlight (frame, event->x, event->y);
>         /* Remember which glyph we're now on.  */
>         remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph);
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>         return 1;
>       }
>  
>     return 0;
>   }
>  
> The call to remember_mouse_glyph was not there in earlier versions of
> xterm.c.

--
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [Chong Yidong] Re: Tool-bar buttons unresponsive with tooltips on
@ 2005-10-17 14:19 David PONCE
  0 siblings, 0 replies; 12+ messages in thread
From: David PONCE @ 2005-10-17 14:19 UTC (permalink / raw)
  Cc: storm, jasonr, emacs-devel

Hi,

> It seems to be related to a setting in KDE's window manager, "Click
> Raise Active Window". The tooltip for this setting says:
> 
>   When this option is enabled, the active window will be brought to
>   the front when you click somewhere into the window contents.
> 
> When "Click Raise Active Window" is enabled, the bug appears (clicking
> on a toolbar button when the tooltip is active dismisses the tooltip,
> but doesn't click the button).  The bug goes away if "Click Raise
> Active Window" is disabled.
> 
> This is KDE 3.4.3, the one that comes with the Ubuntu "Breezy Badger"
> release.

It works for me with KDE 3.4.3 on Fedora Core 3. I checked that "Click
Raise Active Window" is enabled. My Emacs is built --with-gtk.

Hope it will help.
David

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [Chong Yidong] Re: Tool-bar buttons unresponsive with tooltips on
@ 2005-10-17 16:43 Chong Yidong
  0 siblings, 0 replies; 12+ messages in thread
From: Chong Yidong @ 2005-10-17 16:43 UTC (permalink / raw)
  Cc: emacs-devel

David PONCE <david.ponce@wanadoo.fr> writes:

> It works for me with KDE 3.4.3 on Fedora Core 3. I checked that "Click
> Raise Active Window" is enabled. My Emacs is built --with-gtk.

Could you try building without gtk, and see if you can reproduce the
problem?

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [Chong Yidong] Re: Tool-bar buttons unresponsive with tooltips on
@ 2005-10-19  8:39 David PONCE
  2005-10-19 17:31 ` Jan D.
  0 siblings, 1 reply; 12+ messages in thread
From: David PONCE @ 2005-10-19  8:39 UTC (permalink / raw)
  Cc: emacs-devel

Hi,

>>It works for me with KDE 3.4.3 on Fedora Core 3. I checked that "Click
>>Raise Active Window" is enabled. My Emacs is built --with-gtk.
> 
> Could you try building without gtk, and see if you can reproduce the
> problem?

Sorry for the delay.  I rebuilt Emacs without GTK, and confirm that
the bug is present.  When a tool tip is displayed, a mouse click on a
button tool bar just closes the tool tip and does nothing else.  When
there is no tool tip it works as expected.

When "Click Raise Active Window" is disabled, there is no problem.

Hope it will help.

Sincerely,
David

In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2005-10-19 on localhost
X server distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-10-19 17:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-16 22:59 [Chong Yidong] Re: Tool-bar buttons unresponsive with tooltips on Kim F. Storm
2005-10-17  7:36 ` Jason Rumney
2005-10-17  8:42   ` Kim F. Storm
2005-10-17 13:19     ` Chong Yidong
2005-10-17 13:28       ` Kim F. Storm
2005-10-17 13:37         ` Jason Rumney
2005-10-18  1:12           ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2005-10-17 14:19 David PONCE
2005-10-17 16:43 Chong Yidong
2005-10-19  8:39 David PONCE
2005-10-19 17:31 ` Jan D.
2005-10-19 17:57   ` Jan D.

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).