<AWT Dev>  Review request for 8159460: On Ubuntu Unity, problem with java/awt/Window/FindOwner/FindOwnerTest
semyon.sadetsky at oracle.com
Fri Jun 17 08:42:21 UTC 2016
Please review fix for JDK9:
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.
More information about the awt-dev