On Wed, 15 Sep 2021 08:15:37 GMT, Alisen Chung <[email protected]> wrote:
> And I tried to keep the same idea for the fix in windows: > `The idea of the fix would be to pick up AwtWindow.m_resizing value and not > consider any messages in PreProcessMouseMsg until m_resizing is true.` If the idea just align behavior to the Windows then you can just update the AWTWindow.m#_deliverMoveResizeEvent, same as on windows set your flag to true when the [self.nsWindow inLiveResize] is true, and then at the end of the method _deliverMoveResizeEvent sets the flag to false. Or just check that [self.nsWindow inLiveResize] flag before sending the mouse event. But note that [AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows] is called in the _deliverMoveResizeEvent, so it is quite possible that these "additional" events are posted by our code and not by the macos. ------------- PR: https://git.openjdk.java.net/jdk/pull/5497
