[PATCH wayland 3/6] Add a dispatcher field to wl_object.

2013-03-08 Thread Jason Ekstrand
This commit adds support for custom dispatchers via a new dispatcher field in wl_object. If the dispatcher field is set to null, the default libffi-based dispatcher will be used. Signed-off-by: Jason Ekstrand --- src/connection.c | 52 --- s

[PATCH wayland 2/6] Add wl_resource_init and use it in libwayland implementations of data sharing and SHM

2013-03-08 Thread Jason Ekstrand
This commit adds a wl_resource_init function for initializing wl_resource structures similar to wl_client_add_object. >From this commit forward, wl_resource structures should not be initialized manually, but should use wl_resource_init. In the event of a change to the wl_resource structure, this

[PATCH weston] Convert resources to use wl_resource_init or wl_client_add_object

2013-03-08 Thread Jason Ekstrand
This commit converts all of the wl_resource instances in weston to be initialized using wl_resource_init. It also cleans up the use of wl_resource in shell_surface and input_panel_surface. Specifically, shell_surface and input_panel_surface now contain only a pointer to their corresponding wl_res

[PATCH wayland 6/6] Add dispatcher versions of functions that take an interface

2013-03-08 Thread Jason Ekstrand
Specifically, the following functions have been added: - wl_resource_init_d - wl_client_add_object_d - wl_client_new_object_d - wl_proxy_add_listener_d Signed-off-by: Jason Ekstrand --- src/wayland-client.c | 30 +- src/wayland-client.h | 4 src/wayland-serv

[PATCH wayland 5/6] Add wl_argument versions of event and request marshallers

2013-03-08 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-client.c | 39 ++- src/wayland-client.h | 2 ++ src/wayland-server.c | 47 --- src/wayland-server.h | 4 4 files changed, 76 insertions(+), 16 deletions(-) diff -

[PATCH wayland 4/6] Add null dispatchers to test objects

2013-03-08 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/connection-test.c | 12 ++-- tests/os-wrappers-test.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/connection-test.c b/tests/connection-test.c index 9a07d71..9bd1cb2 100644 --- a/tests/connection-test.c +++ b/tes

[PATCH wayland 1/6] Change wl_closure_invoke to take an opcode instead of an actual function pointer

2013-03-08 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c | 6 -- src/wayland-client.c | 4 ++-- src/wayland-private.h| 2 +- src/wayland-server.c | 2 +- tests/connection-test.c | 13 +++-- tests/os-wrappers-test.c | 4 ++-- 6 files changed, 17 insertions(+), 14 d

[PATCH wayland 0/6] Add wl_object based custom dispatchers support

2013-03-08 Thread Jason Ekstrand
The following patch series implements custom dispatchers by adding an additional field to wl_object. Accompanying this series is a patch to weston that belongs between patches 2 and 3 of this series. This series requires the following patch by Jonas Ådahl: http://lists.freedesktop.org/archives/wa

Totem should now work natively on wayland via gtk

2013-03-08 Thread darxus
- Forwarded message from totem - https://bugzilla.gnome.org/show_bug.cgi?id=672735 totem | Movie player | unspecified Bastien Nocera changed: What|Removed |Added

Re: [PATCH wayland v3] protocol: Add minimize/maximize protocol

2013-03-08 Thread Scott Moreau
On Fri, Mar 8, 2013 at 3:28 PM, Bill Spitzak wrote: > Scott Moreau wrote: > > "Further, the term minimize is relatively subjective and defined by the >> implementation. Clients should not expect that minimized means the surface >> will be invisable to the user. There are several use cases where

Re: [PATCH wayland v3] protocol: Add minimize/maximize protocol

2013-03-08 Thread Bill Spitzak
Scott Moreau wrote: "Further, the term minimize is relatively subjective and defined by the implementation. Clients should not expect that minimized means the surface will be invisable to the user. There are several use cases where displaying minimized surfaces will be useful." Minimize can be

Re: [PATCH wayland v3] protocol: Add minimize/maximize protocol

2013-03-08 Thread Bill Spitzak
Scott Moreau wrote: > I don't know what you're talking about here but please see the comment > in the last paragraph of the commit message: > The concern is exactly the same as for any subsurfaces and for child floating windows. The specific example is a client has any number of "main" surfac

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-03-08 Thread Pekka Vuorela
On 19.02.2013 20:26, Jan Arne Petersen wrote: From: Jan Arne Petersen This series finalizes the first version of the text protocol and moves it from Weston to Wayland, so that it can be implemented in toolkits. It adds the missing language/text-direction support to the protocol. text_model ge

Re: [PATCH] pixman-renderer: don't forget to initialize the debug fields

2013-03-08 Thread Scott Moreau
On Fri, Mar 8, 2013 at 1:05 PM, Philipp Brüschweiler wrote: > Sorry, forgot Reply All. > > > On Fri, Mar 8, 2013 at 9:04 PM, Philipp Brüschweiler wrote: > >> On Fri, Mar 8, 2013 at 8:44 PM, Scott Moreau wrote: >> >>> >>> >>> On Fri, Mar 8, 2013 at 12:35 PM, Philipp Brüschweiler >>> wrote: >>> >>

Re: [PATCH] pixman-renderer: don't forget to initialize the debug fields

2013-03-08 Thread Philipp Brüschweiler
Sorry, forgot Reply All. On Fri, Mar 8, 2013 at 9:04 PM, Philipp Brüschweiler wrote: > On Fri, Mar 8, 2013 at 8:44 PM, Scott Moreau wrote: > >> >> >> On Fri, Mar 8, 2013 at 12:35 PM, Philipp Brüschweiler >> wrote: >> >>> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=61930 >>> --- >>> src

Re: [PATCH wayland v3] protocol: Add minimize/maximize protocol

2013-03-08 Thread Scott Moreau
On Fri, Mar 8, 2013 at 12:50 PM, Bill Spitzak wrote: > Scott Moreau wrote: > > The client doesn't need to be involved >> in a minimize action, unlike (un)maximize, it only needs a way to track >> its >> minimize state and request to be minimized. >> > > No, please allow the client to decide exac

Re: [PATCH wayland v3] protocol: Add minimize/maximize protocol

2013-03-08 Thread Bill Spitzak
Scott Moreau wrote: The client doesn't need to be involved in a minimize action, unlike (un)maximize, it only needs a way to track its minimize state and request to be minimized. No, please allow the client to decide exactly what surfaces to unmap in response to minimize. I need the ability

Re: [PATCH] pixman-renderer: don't forget to initialize the debug fields

2013-03-08 Thread Scott Moreau
On Fri, Mar 8, 2013 at 12:35 PM, Philipp Brüschweiler wrote: > Fixes https://bugs.freedesktop.org/show_bug.cgi?id=61930 > --- > src/pixman-renderer.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c > index 9571f6f..9dbe9f0 100644 > --- a/sr

[PATCH] pixman-renderer: don't forget to initialize the debug fields

2013-03-08 Thread Philipp Brüschweiler
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=61930 --- src/pixman-renderer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c index 9571f6f..9dbe9f0 100644 --- a/src/pixman-renderer.c +++ b/src/pixman-renderer.c @@ -485,6 +485,8 @@ pixman_re

Versioning

2013-03-08 Thread Ferry Huberts
Hi While reading wayland-dev on gmane I saw some confusion about versioning. I highly recommend reading http://www.osgi.org/wiki/uploads/Links/SemanticVersioning.pdf and implementing semantic versioning for your interfaces. It will solve all confusion about versions :-) -- Ferry Huberts

[PATCH wayland] client: Invoke new_id closure arguments as pointers instead of integers

2013-03-08 Thread Jonas Ådahl
This commit adds a flags parameter to wl_closure_invoke(). The so far added flags are ment to specify if the invokation is client side or server side. When on the server side, closure arguments of type 'new_id' should be invoked as a integer id while on the client side they should be invoked as a p

Somewhat Newer Wayland screenshots

2013-03-08 Thread nerdopolis
Hi. I noticed that many of the screenshots on the Wayland site are quite old. Over that past few months, I have taken a few Wayland screenshots, which should be a bit more up to date if you want to uses them on the Wayland site. Here's the link to all of them so far: http://imgur.com/a/bCmkL#0

[PATCH weston v2 3/3] compositor, shell: surface transform inheritance

2013-03-08 Thread Pekka Paalanen
Implements surface transform inheritance. A 'parent' pointer is added to weston_surface::geometry, and is automatically used by weston_surface_update_transform(). When updating the transform, the parent transform is updated as needed, too. shell_map_popup() is converted to use the new weston_surfa

[PATCH weston v2 2/3] compositor: introduce weston_surface_geometry_dirty()

2013-03-08 Thread Pekka Paalanen
Instead of directly setting the dirty flag on weston_surface geometry, use a function for that. This allows us to hook into geometry dirtying in a following patch. Also add comments to weston_surface fields, whose modification causes transform state to become outdated. Signed-off-by: Pekka Paala

[PATCH weston v2 1/3] compositor: remove redundant geometry dirtying

2013-03-08 Thread Pekka Paalanen
Remove redundant geometry dirtying from surface_commit() to simplify further changes. This code was added in commit 5df8ecac5d31467122a9d8bda6241d5957ae6848 "compositor: Fix partial repaints" as the fix to: https://bugs.freedesktop.org/show_bug.cgi?id=56538 The issue fixed by that commit was mak

Re: [PATCH weston 1/2] compositor, shell: surface transform inheritance

2013-03-08 Thread Pekka Paalanen
On Mon, 4 Mar 2013 17:28:11 +0200 Pekka Paalanen wrote: > Implements surface transform inheritance. A 'parent' pointer is added to > weston_surface::geometry, and is automatically used by > weston_surface_update_transform(). When updating the transform, the > parent transform is updated as neede