[PATCH weston] Convert resources to use wl_resource_init

2013-02-27 Thread Jason Ekstrand
This patch goes along with the 4 wayland patches and updates weston to build against them. The main question I have here is what we should do with the shell surface and the input panel surface. For some reason, the creation of these two objects is split into two pieces. The wl_resource_init funct

[RFC wayland 4/4] Add null dispatchers to test objects

2013-02-27 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 0f6667b..fb0111b 100644 --- a/tests/connection-test.c +++ b/tes

[RFC wayland 3/4] Add a dispatcher field to wl_object.

2013-02-27 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c | 25 +++-- src/wayland-client.c | 8 ++-- src/wayland-private.h | 11 --- src/wayland-server.h | 1 + src/wayland-util.h| 29 - 5 files changed, 54 insertions(+), 20 delet

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

2013-02-27 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/data-device.c| 16 src/wayland-server.c | 6 +- src/wayland-server.h | 16 src/wayland-shm.c| 24 ++-- 4 files changed, 27 insertions(+), 35 deletions(-) diff --git a/src/data-device.c b/src

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

2013-02-27 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c | 6 -- src/wayland-client.c | 3 +-- src/wayland-private.h| 4 ++-- src/wayland-server.c | 3 +-- tests/connection-test.c | 13 +++-- tests/os-wrappers-test.c | 4 ++-- 6 files changed, 17 insertions(+), 16

[RFC wayland 0/4] Custom dispatchers via wl_object instead of

2013-02-27 Thread Jason Ekstrand
This sequence demonstrates how we could implement custom dispatchers via wl_object instead of wl_interface. This has the added benefit of not breaking ABI client-side and only breaking it server-side. See also: http://lists.freedesktop.org/archives/wayland-devel/2013-February/007559.html Follow

[PATCH 3/3] wayland: Add prime fd passing as a buffer sharing mechanism

2013-02-27 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.c | 27 --- src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c | 69 ++--- src/egl/wayland/wayland-drm/wayland-drm.c | 40 ++--- src/egl/wayland/wayland-drm/wayl

[PATCH 2/3] Add dri image entry point for creating image from fd

2013-02-27 Thread Kristian Høgsberg
--- include/GL/internal/dri_interface.h| 14 +++- src/mesa/drivers/dri/intel/intel_regions.c | 33 +++ src/mesa/drivers/dri/intel/intel_regions.h | 6 src/mesa/drivers/dri/intel/intel_screen.c | 53 -- 4 files changed, 102 insertions(+

[PATCH 1/3] wayland: allocate a __DRIimage for the color buffer

2013-02-27 Thread Kristian Høgsberg
No functional change here, but this will let us query the image for an fd handle later. --- src/egl/drivers/dri2/egl_dri2.h | 3 +- src/egl/drivers/dri2/platform_wayland.c | 57 - 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/src/egl/driv

wl_drm: Buffer-sharing by fd-passing

2013-02-27 Thread Kristian Høgsberg
This little patch series adds support for creating a __DRIimage from a prime/dma_buf fd and then uses that to add support for wl_drm buffer sharing by fd-passing. The __DRIimage patch is interesting in itself as it should enable the EGL_EXT_dmabuf_image extension that's come up a few times. Krist

Re: [PATCH 2/2] compositor: Remove surface->transform.enabled

2013-02-27 Thread Kristian Høgsberg
On Thu, Feb 21, 2013 at 11:05:41AM +0200, Pekka Paalanen wrote: > On Wed, 20 Feb 2013 11:52:18 -0500 > Kristian Høgsberg wrote: > > > We have matrix.type now and can rely on that for optimizing transformations > > and choosing fast-paths. > > --- > > shared/matrix.c | 15 +++ >

Re: [PATCH 1/2] animation: zoom: don't start animation with alpha set to 0

2013-02-27 Thread Kristian Høgsberg
On Sun, Feb 24, 2013 at 06:43:33AM +0100, Rune K. Svendsen wrote: > From: "Rune K. Svendsen" > > I was doing some research on why I thought enabling the zoom/fade > animations added latency (a gap between releasing the launcher > button and the window appearing), and I found out that it's because

Re: [PATCH 1/1] evdev: Wait for SYN event before sending events over to the client

2013-02-27 Thread Kristian Høgsberg
On Sat, Feb 23, 2013 at 11:50:34AM +0100, Jonas Ådahl wrote: > Hi, > > On Fri, Feb 22, 2013 at 7:56 PM, Singh, Satyeshwar > wrote: > > The issue was that touch::down event from the compositor to client apps > > would send the previous motion events coordinates and this obviously made > > the clie

Re: [PATCH v3] compositor: send a pointer motion if the focus surface moves under the pointer

2013-02-27 Thread Kristian Høgsberg
On Thu, Feb 21, 2013 at 04:36:20PM +0100, Giulio Camuffo wrote: > --- > src/compositor.c | 19 +++ > 1 file changed, 15 insertions(+), 4 deletions(-) > > diff --git a/src/compositor.c b/src/compositor.c > index 64d0830..025c6fd 100644 > --- a/src/compositor.c > +++ b/src/composito

Re: [PATCH v6] compositor: call configure on surfaces with a null buffer too

2013-02-27 Thread Kristian Høgsberg
On Thu, Feb 21, 2013 at 11:29:21AM +0100, Giulio Camuffo wrote: > This way the shell can know when a surface has been unmapped by > checking the value returned by weston_surface_is_mapped(surface). > The configure handlers have now width and height parameters, so > they do not need anymore to check

Re: [PATCH] connection : correct debugging info in wl_closure_print

2013-02-27 Thread Jason Ekstrand
Elvis, Unfortunately, this conflicts with the following commit: http://cgit.freedesktop.org/wayland/wayland/commit/?id=2fc248dc2c877d02694db40aad52180d71373d5a Also, due to the changes in wl_closure the actual object is no longer even stored for arguments of type new_id, so this isn't even possib

[PATCH 5/5] Add wayland.socket systemd unit for socket activation

2013-02-27 Thread Benjamin Franzke
Wayland compositors aiming for systemd socket activation should use wayland.socket in Sockets= in its service files units. This way they get automatically systemd socket activation. The unit is installed as a user unit, so intended to be used is a systemd user session. This is for the reason of b

[PATCH 4/5] server: Add support for systemd socket activation

2013-02-27 Thread Benjamin Franzke
This is acquring the socket, omit bind and listen, and not touching (e.g. removing) the socket path since thats managed by systemd. --- src/wayland-server.c | 42 +++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/wayland-server.c b/src/wa

[PATCH 3/5] Add drop-in files from systemd for socket activation

2013-02-27 Thread Benjamin Franzke
--- src/Makefile.am | 2 + src/sd-daemon.c | 536 src/sd-daemon.h | 282 + 3 files changed, 820 insertions(+) create mode 100644 src/sd-daemon.c create mode 100644 src/sd-daemon.h diff --git a/src/Makefile.am

[PATCH 2/5] server: Move bind and listen into initializer function

2013-02-27 Thread Benjamin Franzke
Restructured for systemd socket activation. Makes it easier to drop this step later, by returning early. --- src/wayland-server.c | 36 +--- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index fb07a01..9a

[PATCH 1/5] server: Create socket path prior the socket

2013-02-27 Thread Benjamin Franzke
This is just in preparation for systemd socket activation since we need to know the path before creating/acquiring the socket. --- src/wayland-server.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index dae7177..fb07a

wl_subsurface destruction, and design patterns (Re: [RFC Weston 00/10] Sub-surfaces v2)

2013-02-27 Thread Pekka Paalanen
On Fri, 22 Feb 2013 17:07:44 +0200 Pekka Paalanen wrote: > Open issues: > > - What should wl_subsurface.destroy do? Nothing, or reset the > wl_surface's role? Currently it resets the role, since it was > easy to implement. > ... > To do, bugs: > > - destroying the wl_surface of a wl_subsur

[PATCH] connection : correct debugging info in wl_closure_print

2013-02-27 Thread Elvis Lee
- print new object id on server side - print new object name when wl_registry.bind --- src/connection.c | 10 +++--- src/wayland-client.c |4 ++-- src/wayland-private.h |2 +- src/wayland-server.c |6 +++--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/s