RFR: 8254841: [macos] Enter or Exit events are shouldn't be displayed while resizing [v5]

Sergey Bylokhov serb at openjdk.java.net
Tue Sep 21 19:18:32 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

src/java.desktop/macosx/native/libawt_lwawt/awt/AWTWindow.m line 659:

> 657:     if (![self.nsWindow inLiveResize]) {
> 658:         [AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows];
> 659:     }

Are you sure that inLiveResize is only set when the user resizes the window? What happens if the user will move the window to the fullscreen or maximize it(by clicking on the title/buttons), will the inLiveResize be set to true or not?

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

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



More information about the client-libs-dev mailing list