Re: Return values in Wayland XML specification

2017-05-24 Thread Quentin Glidic
On 5/24/17 8:37 PM, adlo wrote: On 24 May 2017, at 16:43, Quentin Glidic wrote: There is no need, because the compositor is supposed to list only relevant surfaces. What I would like to do is get the desktop window so that I can display a fake live image

Re: Return values in Wayland XML specification

2017-05-24 Thread adlo
> On 24 May 2017, at 16:43, Quentin Glidic > wrote: > > There is no need, because the compositor is supposed to list only relevant > surfaces. What I would like to do is get the desktop window so that I can display a fake live image of the empty desktop as a

Re: Return values in Wayland XML specification

2017-05-24 Thread Quentin Glidic
On 5/24/17 5:41 PM, adlo wrote: On 15 May 2017, at 10:52, Quentin Glidic wrote: If you are writing/porting a window switcher, please consider using Wayland Wall window-switcher protocol[1]. If you are not, please don’t, as this protocol is very specific to

Re: Return values in Wayland XML specification

2017-05-24 Thread adlo
> On 15 May 2017, at 10:52, Quentin Glidic > wrote: > > If you are writing/porting a window switcher, please consider using Wayland > Wall window-switcher protocol[1]. If you are not, please don’t, as this > protocol is very specific to switchers (it has

Re: Return values in Wayland XML specification

2017-05-19 Thread Quentin Glidic
On 5/19/17 4:57 PM, adlo wrote: Do any compositors support this protocol? Any compositor based on libweston and capable of loading weston plugins (and later libweston plugins), using Weston Wall[1]. The implementation is limited (no workspaces support) but that is something fixable in the

Re: Return values in Wayland XML specification

2017-05-19 Thread adlo
Do any compositors support this protocol? Regards adlo > On 15 May 2017, at 14:27, Quentin Glidic > wrote: > > On 5/15/17 3:13 PM, adlo wrote: >>> On 15 May 2017, at 10:52, Quentin Glidic >>> wrote: >>> If you are

Re: Return values in Wayland XML specification

2017-05-15 Thread Pekka Paalanen
On Mon, 15 May 2017 14:22:32 +0100 adlo wrote: > > On 15 May 2017, at 08:46, Pekka Paalanen wrote: > > > > Yes, that is a good design suggestion. > > > > If the events are always sent only as a response to a request, then > > there is no need for a

Re: Return values in Wayland XML specification

2017-05-15 Thread Quentin Glidic
On 5/15/17 3:13 PM, adlo wrote: On 15 May 2017, at 10:52, Quentin Glidic wrote: If you are writing/porting a window switcher, please consider using Wayland Wall window-switcher protocol[1]. If you are not, please don’t, as this protocol is very specific to

Re: Return values in Wayland XML specification

2017-05-15 Thread adlo
> On 15 May 2017, at 08:46, Pekka Paalanen wrote: > > Yes, that is a good design suggestion. > > If the events are always sent only as a response to a request, then > there is no need for a 'done' event. The client can send the request > followed by wl_display.sync, and

Re: Return values in Wayland XML specification

2017-05-15 Thread adlo
> On 15 May 2017, at 10:52, Quentin Glidic > wrote: > > If you are writing/porting a window switcher, please consider using Wayland > Wall window-switcher protocol[1]. If you are not, please don’t, as this > protocol is very specific to switchers (it has

Re: Return values in Wayland XML specification

2017-05-15 Thread Quentin Glidic
On 5/15/17 9:46 AM, Pekka Paalanen wrote: On Mon, 15 May 2017 07:05:26 +0200 Wojciech Kluczka wrote: In Wayland array can contain only integers. Hi, not exactly. The data type inside an array is unspecified by the XML language. You can use literally anything,

Re: Return values in Wayland XML specification

2017-05-15 Thread Pekka Paalanen
On Mon, 15 May 2017 07:05:26 +0200 Wojciech Kluczka wrote: > In Wayland array can contain only integers. Hi, not exactly. The data type inside an array is unspecified by the XML language. You can use literally anything, it's just a binary blob with a size, with some

Re: Return values in Wayland XML specification

2017-05-14 Thread Wojciech Kluczka
In Wayland array can contain only integers. See how listing of outputs is done. Server creates one global `wl_output` per output, client binds to the global, server sends events with output parameters (list of modes among them) and then event `done` to indicate it stopped sending info about this

Re: Return values in Wayland XML specification

2017-05-14 Thread adlo
> On 26 Apr 2017, at 08:23, Pekka Paalanen wrote: > > If you need a client to receive something as a reply to a request, you > need to specify an event for delivering it. There are no shortcuts for > that, because each roundtrip makes everything a tiny bit slower, and > that

Re: Return values in Wayland XML specification

2017-04-26 Thread Pekka Paalanen
On Tue, 25 Apr 2017 23:01:25 +0100 adlo wrote: > How are return values specified in the Wayland XML specification? Hi, there are no return values in Wayland. The concept does not exist by design, because it would imply synchronous requests. There are no implicitly

Return values in Wayland XML specification

2017-04-25 Thread adlo
How are return values specified in the Wayland XML specification? Regards adlo ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel