Hello,
Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8159460
webrev: http://cr.openjdk.java.net/~ssadetsky/8159460/webrev.00/
On Unity WM_TAKE_FOCUS notification is sent to the decorated parent
window if its undecorated child window is clicked by mouse, after that
ButtonPress notification is sent. Those notifications causes two
parallel sequences of AWT events to gain focus to different windows.
Since focus requests are asynchronous the resulting focus may by
obtained randomly by the clicked child window or by its owner.
The fix solution is : in case of Unity WM, do not change the current
focused window if the incoming WM_TAKE_FOCUS is addressed the current
active window and the current focused window owned by the active
window. This solution should prevent racing focus requests on Unity.
--Semyon