<AWT Dev> [8] Review request for 7033533: realSync() doesn't work with Xfce

Oleg Pekhovskiy oleg.pekhovskiy at oracle.com
Wed Sep 25 05:38:20 PDT 2013


Hi all,

please review the fix
http://cr.openjdk.java.net/~bagiras/7033533.1/
for
https://bugs.openjdk.java.net/browse/JDK-7033533

Previous implementation of XToolkit.syncNativeQueue() relied upon WM_S0 
atom existence and that it was owned by current window manager.
But several WMs (like XFCE and LXDE) don't send SelectionNotify event to 
the client on XConvertSelection() for that atom. That led 
XToolkit.syncNativeQueue() to hang until TimeOutException.

I decided to keep XConvertSelection() usage, but make root toolkit 
window as an owner for selection atom (with another name), and handle 
SelectionRequest event from X Server, sending SelectionNotify in 
response (as window manager is supposed to do).

Tested on both XFCE and LXDE.

Thanks,
Oleg


More information about the awt-dev mailing list