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

Alisen Chung github.com+90066231+alisenchung at openjdk.java.net
Fri Oct 1 00:21:40 UTC 2021


On Wed, 29 Sep 2021 22:59:06 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> It sound strange, isn't the "_deliverMoveResizeEvent" should be called on the resize only, why it affect the mouse move events which posted later? the new flag NSWindowStyleMaskFullScreen will work when the window was moved to the full screen, what about the case when the window will moved from the full screen -> the mouse will appier outside of the window?

It looks like the line was added for the previous bug only for when fullscreen mode is turned off and the mouse is outside the window. Entering fullscreen already posts a mouseEntered event.

> BTW we also have a call to synthesizeMouseEnteredExitedEventsForAllWindows in the windowDidEnterFullScreen which should do what you tried to achieve in the latest patch, why it does not work?

I'm don't see windowDidEnterFullScreen calls when the window is being fullscreened.

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

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



More information about the client-libs-dev mailing list