classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] RFC: Container fix


From: Lillian Angel
Subject: [cp-patches] RFC: Container fix
Date: Fri, 11 Nov 2005 09:47:39 -0500

I made this change because I found in some case events were not being
dispatched properly. 

If in the MOUSE_CLICKED event we find that the candidate (for
mouseEventTarget) and the pressedComponent are not equal, null is
returned for the mouseEventTarget. In this case, I think that pressCount
should be reset to 0, since MOUSE_PRESSED and MOUSE_RELEASED events are
not going to be dispatched for this component. Also, pressedComponent
will be reset to something else when MOUSE_PRESSED is dispatched the
next time (and pressCount will be incremented appropriately).

I don't want to commit this patch until it gets approved from someone (I
may be overlooking something).

Thanks!


2005-11-11  Lillian Angel  <address@hidden>

        * java/awt/Container.java
        (LightweightDispatcher.acquireComponentForMouseEvent): If the 
        event is not being dispatched, the pressCount should be reset.

Attachment: patch.diff
Description: Text Data


reply via email to

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