<AWT Dev> <Awt Dev> [9] Review Request for 8036915: setLocationRelativeTo stopped working in Ubuntu 13.10 (Unity)

Semyon Sadetsky semyon.sadetsky at oracle.com
Mon Oct 5 11:56:34 UTC 2015


Please review fix for JDK9:

bug: https://bugs.openjdk.java.net/browse/JDK-8036915
webrev: http://cr.openjdk.java.net/~ssadetsky/8036915/webrev.00/

The test scenario attached to the jira contains potential errors because 
Componet.getLocation() won't return the location at any moment of time.
Anyway a window location issue exists in Unity. The root cause is that 
the real insets sent with the XA_NET_FRAME_EXTENTS event can be 
overridden by the "guessed" insets which are zero on Unity. So the 
returned location is increased by real insets while the real window 
location is correct.
Yet another issue I found in Unity is a window size issue which is also 
caused by the frame insets detection. The Unity WM doesn't provide the 
frame insets immediately and XA_NET_FRAME_EXTENTS event may come after 
the ConfigureNotify event for the frame.
The solution proposes an adaptation of the existing frame insets request 
algorithm to the Unity WM so that makes it more stable.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20151005/074433dc/attachment.html>

More information about the awt-dev mailing list