classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: Container fixlet


From: Mark Wielaard
Subject: Re: [cp-patches] FYI: Container fixlet
Date: Wed, 07 Dec 2005 01:45:28 +0100

[Sorry for the duplicate message, trouble with my primary email account]

Hi Roman,

On Tue, 2005-12-06 at 16:25 +0000, Roman Kennke wrote:
> 2005-12-06  Roman Kennke  <address@hidden>
> 
>     PR classpath/25256
>     * java/awt/Container.java
>     (LightweightDispatcher.acquireComponentForMouseEvent): When we
>     receive a MOUSE_RELEASED then dispatch it to the same component
>     that received the original MOUSE_PRESSED. This is needed for
>     correct dragging behaviour.
> [...]
> @@ -2157,12 +2157,18 @@
>          break;
>        }
>  
> -    if (me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0
> +    if (me.getID() == MouseEvent.MOUSE_PRESSED
> +        && me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0
>          || me.getID() == MouseEvent.MOUSE_DRAGGED)
>        {

Shouldn't that first line say MouseEvent.MOUSE_RELEASED now, and
shouldn't the condition be an || ?

  if (me.getID() == MouseEvent.MOUSE_RELEASED
      || (me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0)
      || me.getID() == MouseEvent.MOUSE_DRAGGED)

Cheers,

Mark





reply via email to

[Prev in Thread] Current Thread [Next in Thread]