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

Phil Race prr at openjdk.java.net
Tue Sep 21 22:51:59 UTC 2021


On Tue, 21 Sep 2021 19:15:43 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> 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?

The docs seem to me to be saying it is only when the user is dragging :
https://developer.apple.com/documentation/appkit/nsview/1483267-inliveresize?language=objc

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

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



More information about the client-libs-dev mailing list