<AWT Dev> [9] Review request for 8159460: On Ubuntu Unity, problem with java/awt/Window/FindOwner/FindOwnerTest

Alexander Zvegintsev alexander.zvegintsev at oracle.com
Tue Jul 12 18:23:06 UTC 2016


Looks good to me.

--
Thanks,
Alexander.

On 17.06.2016 11:42, Semyon Sadetsky wrote:
> 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
>
>
>



More information about the awt-dev mailing list