On Tue, 14 Sep 2021 22:05:56 GMT, Alisen Chung <[email protected]> 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 bug ID to test I have a general question about this bug, initially the test was added for https://bugs.openjdk.java.net/browse/JDK-6479820 and that bug was fixed because of this: When resizing the window by dragging a corner with the mouse, the panel receives entry/exit mouse events randomly. These events should not occur because the mouse is not entering or exiting the window, it is dragging a corner of its border. And in the current bug description: `The window resizing is a bit slower than mouse movement. So before the window resize can catch up to the mouse, the mouse exits the window, then re-enters when the window catches up to it. This can be verified if you resize the window at the edge without entering the window: there will be no mouseEntered or mouseExit events. ` So situation is different, if the mouse is moved faster than window is moving, then I do not see why we should not post an events. Especially if the native system did that. But the question is it really a problem of slow window, or may be we have some bug in the nativeSynthesizeMouseEnteredExitedEvents where we synthesize such events when we should not. ------------- PR: https://git.openjdk.java.net/jdk/pull/5497
