Re: Testing the Wayland backend for Dolphin-Emu

2013-02-18 Thread Scott Moreau
Hi 小龙 陈, Thanks for testing. I did not have time to try very many possible cases. On Mon, Feb 18, 2013 at 3:19 PM, 小龙 陈 wrote: > Hi everyone, > > I did some testing with the new Wayland backend for Dolphin-emu posted here > yesterday: > http://lists.freedesktop.org/archives/wayland-devel/2013-F

Testing the Wayland backend for Dolphin-Emu

2013-02-18 Thread 小龙 陈
Hi everyone, I did some testing with the new Wayland backend for Dolphin-emu posted here yesterday: http://lists.freedesktop.org/archives/wayland-devel/2013-February/007470.html Hopefully someone find them useful. Please let me know if you have any questions (I'm no developer :D) or if there's a

Re: Wire protocol questions

2013-02-18 Thread Kristian Høgsberg
On Mon, Feb 18, 2013 at 10:35:55PM +0100, Peter Hultqvist wrote: > I've been reading the > http://wayland.freedesktop.org/docs/html/sect-Protocol-Wire-Format.html > and done some testing with the wayland socket. > > From the docs I got the package sender object id, packet size and opcode. > I also

Re: [PATCH v2] shell: Do not hang when mapping a popup twice

2013-02-18 Thread Kristian Høgsberg
On Mon, Feb 18, 2013 at 10:26:01PM +0100, Giulio Camuffo wrote: > When calling shell_map_popup() more than one time on the same shell_surface > the parent transform was getting added more than one time to the transform > list, resulting in an infinite loop when going through the list with > wl_list

[PATCH] Install protocol XML files in $(datadir)/wayland

2013-02-18 Thread Kristian Høgsberg
This installs the protocol XML under $(datadir)/wayland. The intention is that this directory is a shared location for all protocol files and as such we'll need to prefix our filenames with weston to avoid clashing. https://bugs.freedesktop.org/show_bug.cgi?id=55183 --- I committed the first SDK

Wire protocol questions

2013-02-18 Thread Peter Hultqvist
I've been reading the http://wayland.freedesktop.org/docs/html/sect-Protocol-Wire-Format.html and done some testing with the wayland socket. >From the docs I got the package sender object id, packet size and opcode. I also understand the argument formats. >From looking at the initial packets sent

[PATCH v2] shell: Do not hang when mapping a popup twice

2013-02-18 Thread Giulio Camuffo
When calling shell_map_popup() more than one time on the same shell_surface the parent transform was getting added more than one time to the transform list, resulting in an infinite loop when going through the list with wl_list_for_each in weston_surface_update_transform_enable(). This commit remov

Re: [PATCH weston] configure.ac: Make xwayland tests depend on xwayland

2013-02-18 Thread Kristian Høgsberg
On Mon, Feb 18, 2013 at 08:38:22PM +0100, Quentin Glidic wrote: > From: Quentin Glidic > > Signed-off-by: Quentin Glidic > --- > configure.ac | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) Thanks, that's better, committed. Kristian > diff --git a/configure.ac b/configur

Re: [PATCH] Install header files and pkg-config file for external modules

2013-02-18 Thread Kristian Høgsberg
On Sat, Feb 16, 2013 at 10:59:56PM +0100, David Herrmann wrote: > Hi Kristian > > Just some random comments: > > On Sat, Feb 16, 2013 at 2:53 AM, Kristian Høgsberg wrote: > > This patch installs the three header files that define the compositor > > plugin interface as well as a pkg-config file.

[PATCH weston] configure.ac: Make xwayland tests depend on xwayland

2013-02-18 Thread Quentin Glidic
From: Quentin Glidic Signed-off-by: Quentin Glidic --- configure.ac | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 32fbb4b..4ca6673 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,10 @@ AM_CONDITIONAL(ENABLE_SETUID_IN

[PATCH wayland 4/7v2] Add support for custom dispatchers

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- This is an alternate version that contains a quick asthetics fix as requested by Bill Spitzak. src/connection.c| 15 + src/wayland-client.c| 13 +-- src/wayland-private.h | 3 ++- src/wayland-server.c| 9 +++- src/wayl

Re: [PATCH wayland 4/7] Add support for custom dispatchers

2013-02-18 Thread Bill Spitzak
On 02/18/2013 08:03 AM, Jason Ekstrand wrote: + if (dispatcher == NULL) { + wl_interface_default_dispatcher(target, opcode, + closure->message, + data, closure->args); + } else {

[PATCH wayland 7/7] Add wl_argument forms of wl_resource_post_event and wl_resource_queue_event

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-server.c | 47 --- src/wayland-server.h | 4 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index 104f9a6..a33f10e 100644 --- a/src/waylan

[PATCH wayland 6/7] scanner: Properly fill out interfaces

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/scanner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scanner.c b/src/scanner.c index 6d2eddd..947ceb9 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -1133,6 +1133,7 @@ emit_code(struct protocol *protocol) else

[PATCH wayland 5/7] Fill out dummy objects and fix wl_closure_invoke calls

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/connection-test.c | 36 ++-- tests/dispatcher-test.c | 1 + tests/os-wrappers-test.c | 11 +-- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/tests/connection-test.c b/tests/connection-test.c inde

[PATCH wayland 4/7] Add support for custom dispatchers

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c| 15 + src/wayland-client.c| 13 +-- src/wayland-private.h | 3 ++- src/wayland-server.c| 9 +++- src/wayland-util.h | 27 -- tests/dispatcher-test.c | 60 +

[PATCH wayland 3/7] Clean up wl_closure and convert it to using a wl_argument array

2013-02-18 Thread Jason Ekstrand
As of now, the only purpose the extra data serves is for stashing wl_array temporaries and the raw wire data for a closure demarshalled off the socket. The reason for this is because it gives us something that arrays and strings can point to with minimal copying. All other conversions such as ser

[PATCH wayland 2/7] Add a default dispatcher function and related test

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c| 82 ++ src/wayland-private.h | 5 +++ src/wayland-util.h | 12 +++ tests/.gitignore| 1 + tests/Makefile.am | 2 ++ tests/dispatcher-test.c | 95 +++

[PATCH wayland 1/7] Make a #define for WL_CLOSURE_MAX_ARGS instead of a magic number.

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wayland-private.h b/src/wayland-private.h index 4ec9896..ecd7f17 100644 --- a/src/wayland-private.h +++ b/src/wayland-private.h @@ -39,6 +39,7 @@ #define WL_MAP_S

[PATCH wayland 0/7] Custom dispatchers version 3

2013-02-18 Thread Jason Ekstrand
This is the third, and hopefully final, version of my custom dispatchers modifications. The biggest change from last time is a lot more cleanup in wl_closure. As of now, the only purpose the extra data serves is for stashing wl_array temporaries and the raw wire data for a closure demarshalled of