RFR: 8254841: [macos] Enter and Exit events shouldn't be sent whilst resizing [v5]

Alisen Chung github.com+90066231+alisenchung at openjdk.java.net
Wed Sep 22 17:55:57 UTC 2021


On Fri, 17 Sep 2021 16:33:10 GMT, Alisen Chung <github.com+90066231+alisenchung at openjdk.org> 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



More information about the client-libs-dev mailing list