RFR: 8254841: [macos] Enter and Exit events shouldn't be sent whilst resizing [v8]
Alisen Chung
github.com+90066231+alisenchung at openjdk.java.net
Thu Oct 7 15:05:10 UTC 2021
On Fri, 1 Oct 2021 22:37:05 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> > I think synthesizeMouseEnteredExitedEventsForAllWindows shouldn't be in deliverMoveResizeEvent since there shouldn't be any mouseEnter/Exit events during a resize or move
>
> Why do you think that if the window is moved/resized and/or appeared under the mouse then the mouse event should not be posted? I do not think so. We can try to minimize the number of events when the user drags/resizes the window, but we should not change the number of events if the macos/app moved/resized the window.
I think mouseEvents are already posted by macos when the mouse enters the window thru fullscreen-resizing (green button) or tiling, so I think we don't need to synthesize additional events. I suggest we remove the line because it introduces another bug where dragging to move the window will post a mouseEntered event without the mouse ever entering the actual window. It also introduces the bug from the original bug report.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5497
More information about the client-libs-dev
mailing list