<AWT Dev> [9] Review request for JDK-7011513: GTK FileDialog modality issues

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Apr 15 19:10:30 UTC 2015


Hi, Alexander.
Do we need a new iteration of the fix, or this one is latest?

On 20.01.14 19:16, Alexander Zvegintsev wrote:
> Hi Sergey,
>
> I've updated the fix:
> http://cr.openjdk.java.net/~azvegint/jdk/9/7011513/webrev.01/
>
> Now it returns location and size of a file dialog correctly.
>
> [1] 
> https://developer.gnome.org/gtk2/stable/GtkWidget.html#GtkWidget-configure-event
> Thanks,
>
> Alexander.
> On 01/10/2014 04:32 PM, Sergey Bylokhov wrote:
>> Hi, Alexander.
>> The fix looks good.
>>
>> On 10.01.2014 15:25, Alexander Zvegintsev wrote:
>>> Hello AWT team,
>>>
>>> Please review the fix
>>> http://cr.openjdk.java.net/~azvegint/jdk/9/7011513/webrev.00/
>>> for
>>> https://bugs.openjdk.java.net/browse/JDK-7011513
>>>
>>> Currently a Gtk file chooser dialog window can be obscured by its 
>>> owner window,
>>> this happens because we do not specify a parent window for obvious 
>>> reason: our owner window in not an instance of GtkWindow.
>>> However it can be workarounded by setting up a WM_TRANSIENT_FOR 
>>> property [1][2].
>>>
>>> I tested this on Solaris 10/11, OEL 6, Ubuntu 13.04, all works fine 
>>> for me.
>>>
>>> [1] http://tronche.com/gui/x/icccm/sec-4.html#WM_TRANSIENT_FOR
>>> [2] 
>>> http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/XSetTransientForHint.html
>>> [3] 
>>> https://developer.gnome.org/gtk2/stable/GtkWidget.html#gtk-widget-realize
>>> [4] 
>>> https://developer.gnome.org/gdk/stable/gdk-X-Window-System-Interaction.html#gdk-x11-drawable-get-xid
>>>
>>> -- 
>>> Thanks,
>>>
>>> Alexander.
>>
>>
>> -- 
>> Best regards, Sergey.
>


-- 
Best regards, Sergey.

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


More information about the awt-dev mailing list