On Fri, 17 Sep 2021 16:33:10 GMT, Alisen Chung 
<[email protected]> wrote:

>> Added a resizing flag when the window is currently being resized to block 
>> mouseEntered and mouseExited events from being posted to that window.
>
> Alisen Chung has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   added check for inLiveResize in AWTWindow

> When the user maximizes the window a mouseEntered event does fire, so it 
> preserves the fix for JDK-8028485. But I noticed another problem is that a 
> mouseEntered event will be generated if the window is dragged around (without 
> resizing or entering the actual window). This could cause a situation where 
> you can drag a window around to create a mouseEntered event, move the mouse 
> away from the window, and re-enter the window without generating a 
> mouseEntered event.

Moving the frame and causing a mouseEntered event seems to be a separate bug 
that isn't caused by the fix. Before the changes the mouseEntered and 
mouseExited events would constantly fire, while after the fix only a 
mouseEntered event would fire. I think correct behavior would be having no 
mouse events during a window move. I filed another bug (JDK-8274159) for this 
window-moving mouseEntered event bug.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5497

Reply via email to