On Fri, 1 Oct 2021 22:37:05 GMT, Sergey Bylokhov <[email protected]> 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

Reply via email to