This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Fix to java.awt.Container$LightweightDispatcher
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: David Jee <djee at redhat dot com>
- Cc: libgcj patches <java-patches at gcc dot gnu dot org>
- Date: Tue, 20 Jan 2004 15:22:53 -0500
- Subject: Re: [PATCH] Fix to java.awt.Container$LightweightDispatcher
- References: <1074538408.9514.13.camel@tomboy.toronto.redhat.com>
On Mon, 2004-01-19 at 13:53, David Jee wrote:
> Here is a patch that fixes a couple things in the helper class
> LightweightDispatcher in java.awt.Container. It adds an extra check to
> avoid dispatching a MOUSE_ENTERED event twice, and it translates the
> mouse event's (x,y) location for the event target.
>
> -David Jee
>
>
> 2004-01-19 David Jee <djee@redhat.com>
>
> * java/awt/Container.java
> (LightweightDispatcher.handleEvent): Add an extra check to avoid
> dispatching MOUSE_ENTERED event twice. Translate the point for
> the mouse event target before dispatching the event.
>
>
> + // Avoid dispatching a ENTERED or EXITED event twice
The comment should only mention ENTERED, right? Once that's fixed this
can go in.
Thanks,
Tom