Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Bill Spitzak
On 09/17/2013 01:37 AM, Tarnyko wrote: (BTW, it would be great if you had an opinion/insight on this matter) My opinion? Clients should be able to directly set the transform from their surfaces to compositor space. However I don't think my opinion is going to influence anything here. _

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Giulio Camuffo
It's a Weston commit, ca43f09. 2013/9/17 Tarnyko > 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. >> Ax

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Axel Davy
Yes: http://cgit.freedesktop.org/wayland/weston/commit/?id=ca43f0942e23356a0a0f3e08e4d20a8a31b4d629 Axel Davy On Tue, 17 Sep 2013, Tarnyko wrote: 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

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Tarnyko
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

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Axel Davy
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

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Tarnyko
Hi Pekka, I'm taking that as a compliment :-). Thanks ! So we won't rely on that code in the future. If you're curious about why we tried to do that, please look at my answer to Bill and Giulio. Regards, Tarnyko Pekka Paalanen writes: On Mon, 16 Sep 2013 11:41:50 +0200 Tarnyko wrote:

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Tarnyko
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 applic

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-17 Thread Bill Spitzak
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. Wha

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-16 Thread Pekka Paalanen
On Mon, 16 Sep 2013 11:41:50 +0200 Tarnyko wrote: > Hi folks, > > Wayland/Weston 1.2 here ; I recently needed to display a surface using > absolute coordinates. Let's say, 100x100 starting from the upper left corner > of the compositor. > > So here is the (working) approach I used : > > w

Re: Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-16 Thread Giulio Camuffo
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?

Absolute coordinates using "wl_shell_surface_set_transient"

2013-09-16 Thread Tarnyko
Hi folks, Wayland/Weston 1.2 here ; I recently needed to display a surface using absolute coordinates. Let's say, 100x100 starting from the upper left corner of the compositor. So here is the (working) approach I used : window->surface = wl_compositor_create_surface (display->compositor);