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 o

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 accumulates. Therefor

Re: [PATCH libinput 0/2] Small fixes

2017-05-14 Thread Peter Hutterer
On Sun, May 14, 2017 at 04:33:15PM +0200, Gabriel Laskar wrote: > As said in > https://lists.freedesktop.org/archives/wayland-devel/2017-May/034074.html, we > probably can assume that offsetof will be supported by the compiler. > > Also some bugs came by: > * hwdb_parser.py assumes that python3 li

[PATCH libinput 1/2] util: use offsetof in container_of

2017-05-14 Thread Gabriel Laskar
gcc and clang supports offsetof (defined in stddef.h) as defined by C99 and POSIX.1-2001, use it in container_of. Signed-off-by: Gabriel Laskar --- src/libinput-util.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libinput-util.h b/src/libinput-util.h index 9ecded7

[PATCH libinput 2/2] udev/hwdb_parser.py: use python3 from env instead of /usr/bin

2017-05-14 Thread Gabriel Laskar
python installation does not always lives in /usr/bin, this allows to use virtualenv for example. Signed-off-by: Gabriel Laskar --- udev/parse_hwdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev/parse_hwdb.py b/udev/parse_hwdb.py index 97f04f4..b4f0b1b 100755 --- a/u

[PATCH libinput 0/2] Small fixes

2017-05-14 Thread Gabriel Laskar
As said in https://lists.freedesktop.org/archives/wayland-devel/2017-May/034074.html, we probably can assume that offsetof will be supported by the compiler. Also some bugs came by: * hwdb_parser.py assumes that python3 lives in /usr/bin, this forbid the usage of virtualenv (or a python not inst

wl_output ambiguity, xdg_shell fullscreen refresh rate

2017-05-14 Thread Philipp Kerling
Hi Wayland team and community, allow me to quickly introduce myself first, since this is my first post on this list. I'm Philipp, studying Computer Engineering and currently working on getting Wayland support (back) in Kodi as Google Summer of Code project [1] [2].I might have to ask some question