Absolute coordinates using "wl_shell_surface_set_transient"

Tarnyko tarnyko at tarnyko.net
Tue Sep 17 06:03:27 PDT 2013


Great ! Do you by chance have the reference of the patch, and know if it's 
applied on the Wayland, Weston, Xorg... repository ? 

Regards 

Axel Davy writes: 

> Did you test with git master? There has been a patch recently about this. 
> 
> Axel Davy 
> 
> Le 17/09/2013 10:37, Tarnyko a écrit :
>> Hi Giulio, Bill,
>> We were originally investigating a problem happening when using X/GTK 
>> applications under XWayland ; most of the menus appeared badly positioned 
>> when they opened.
>> For example, under Evolution with XWayland, when opening the "File" menu, 
>> the menu appears but outside the application's window.
>> We supposed (but we maybe wrong) that the menu may be a X11 Window, then 
>> wrapped as a surface by XWayland, as the bug was related to Weston badly 
>> calculating the new surface coordinates.
>> (BTW, it would be great if you had an opinion/insight on this matter)
>> Thanks for all your answers, nice to see some reactivity on this list 
>> :-).
>> Regards,
>> Tarnyko 
>> 
>> Bill Spitzak writes:
>>>  
>>> 
>>> Giulio Camuffo wrote:
>>>> No, it's not supposed to work, and if it works it's just by pure chance 
>>>> and/or because of how the shell works internally.
>>>> There is no way to place a surface to an absolute position from the 
>>>> client side, but there may be ways to solve your problem in a different 
>>>> way.
>>>> What are you trying to achieve?
>>> Loading saved window arrangements from a client's configuration file is 
>>> the likely reason. At the moment this is a problem for migrating our 
>>> software to Wayland. I understand the desire to remove this from Wayland 
>>> but I am somewhat stumped on any other way for Wayland to provide this 
>>> functionality. It appears it is possible for X clients to do this, so I 
>>> think the battle is lost and Wayland should add this for non-X clients.
>>> I agree the supplied code should not work. Attempting to set a loop in 
>>> the surface parents should be an error.
>>> _______________________________________________
>>> wayland-devel mailing list
>>> wayland-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>> _______________________________________________
>> wayland-devel mailing list
>> wayland-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/wayland-devel 
>> 
> 


More information about the wayland-devel mailing list