[PATCH] egl: refcount wl_egl_window objects. fix memory corruption

2013-10-07 Thread Giulio Camuffo
Suppose we create a wl_egl_window and an EGLSurface. Then we call eglMakeCurrent(dpy,surf,surf,ctx) with that surface, render and swap. Later we destroy the surface and the window, and we make current another surface. That resulted in two invalid writes because the surface, which is refcounted, get

Re: [PATCH weston] Add a way to update the keymap

2013-10-07 Thread Ran Benita
On Mon, Oct 07, 2013 at 03:32:15PM +0200, Rui Matos wrote: > We'll need something like this in mutter-wayland to allow people to > add/change their keyboard layouts with gnome-control-center so I > figured I'd start by implementing the basics in weston first. > > There's an implementation for a co

Re: [PATCH xkbcommon] keysym-utf: Fix a warning about shadowing

2013-10-07 Thread Ran Benita
On Mon, Oct 07, 2013 at 02:11:36PM +0530, Siddharth Heroor wrote: > Change variable names to avoid the name clash. The warning seen is > > src/keysym-utf.c: In function 'bin_search': > src/keysym-utf.c:841: warning: declaration of 'min' shadows a global > declaration > src/utils.h:109: warning: s

[RFC wayland] Add libwayland-glib for GLib main loop integration

2013-10-07 Thread Quentin Glidic
From: Quentin Glidic Signed-off-by: Quentin Glidic --- I added Wayland support to a GLib-based daemon, which needed main loop integration. It required a GSource for the Wayland fd, and I decided to split this part to make it easier for other projects to reuse that. Here is the code, as a tiny l

Re: [PATCH weston] Add a way to update the keymap

2013-10-07 Thread Daniel Stone
Hi, On 7 October 2013 14:32, Rui Matos wrote: > We'll need something like this in mutter-wayland to allow people to > add/change their keyboard layouts with gnome-control-center so I > figured I'd start by implementing the basics in weston first. > > There's an implementation for a couple of back

Re: [PATCH 1/4] input: Add core API to update the keymap

2013-10-07 Thread Daniel Stone
Hi, On 7 October 2013 14:32, Rui Matos wrote: > @@ -1623,6 +1623,44 @@ weston_compositor_xkb_destroy(struct weston_compositor > *ec) > } > #endif > > +WL_EXPORT void > +weston_seat_update_keyboard(struct weston_seat *seat, struct xkb_keymap > *keymap) This should be weston_seat_update_keymap

[PATCH 4/4] clients/window: Dispose of previous keymap and state on keymap change

2013-10-07 Thread Rui Matos
--- clients/window.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/clients/window.c b/clients/window.c index 5b20da5..1f32c73 100644 --- a/clients/window.c +++ b/clients/window.c @@ -3037,6 +3037,8 @@ keyboard_handle_keymap(void *data, struct wl_keyb

[PATCH 3/4] compositor-wayland: Handle keymap changes

2013-10-07 Thread Rui Matos
--- src/compositor-wayland.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 77b2a2c..95545bc 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -515,7 +515,11 @@ input_handle_keymap(void *data,

[PATCH 2/4] compositor-x11: Update keymap when XKB keymap changes

2013-10-07 Thread Rui Matos
--- src/compositor-x11.c | 35 +-- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/src/compositor-x11.c b/src/compositor-x11.c index 704e751..bdff323 100644 --- a/src/compositor-x11.c +++ b/src/compositor-x11.c @@ -201,6 +201,7 @@ x11_compositor_setup

[PATCH 1/4] input: Add core API to update the keymap

2013-10-07 Thread Rui Matos
How and when to update the keymap is left to each backend. --- src/compositor.h | 2 ++ src/input.c | 38 ++ 2 files changed, 40 insertions(+) diff --git a/src/compositor.h b/src/compositor.h index a19d966..041758a 100644 --- a/src/compositor.h +++ b/src/

[PATCH weston] Add a way to update the keymap

2013-10-07 Thread Rui Matos
We'll need something like this in mutter-wayland to allow people to add/change their keyboard layouts with gnome-control-center so I figured I'd start by implementing the basics in weston first. There's an implementation for a couple of backends and a fix for the client side which would leak on ke

Re: [PATCH] DirectFB Integration v1

2013-10-07 Thread Denis Oliver Kropp
Actually, I was cleaning up the patch. The other changes were not meant to be sent. The EGL work is part of the DirectFB repository. I will send a cleaned up patch with coding style fixes. On Mon, Oct 7, 2013 at 9:20 AM, Pekka Paalanen wrote: > On Mon, 7 Oct 2013 02:00:15 +0200 > Denis Oliver

Fedora 20 gnome-wayland on VMware Player 5.0.0

2013-10-07 Thread Peter Hanzel
Hello. I tried to run gnome-wayland on Fedora 20 within VMware. First it failed on Spurious X server exits. So I added wlglamor and xf86-video-wayland drivers. But now it fails in kernel with: kernel: [drm:vmw_mmap] *ERROR* Illegal attempt to mmap old fifo space. Then I have tried the same in Arc

[PATCH weston v3] rpi: Add support for EGL buffers

2013-10-07 Thread Tomeu Vizoso
The EGL implementation on the RPi allocates a front and a back DispmanX resources for each EGLSurface, which we composite along the others. --- v2: Added a stub for vc_dispmanx_get_handle_from_wl_buffer v3: Release any wl_buffers when their surface is destroyed src/rpi-bcm-stubs.h | 7 ++ src/

[PATCH xkbcommon] keysym-utf: Fix a warning about shadowing

2013-10-07 Thread Siddharth Heroor
Change variable names to avoid the name clash. The warning seen is src/keysym-utf.c: In function 'bin_search': src/keysym-utf.c:841: warning: declaration of 'min' shadows a global declaration src/utils.h:109: warning: shadowed declaration is here src/keysym-utf.c:842: warning: declaration of 'max'

Re: [PATCH] DirectFB Integration v1

2013-10-07 Thread Pekka Paalanen
On Mon, 7 Oct 2013 02:00:15 +0200 Denis Oliver Kropp wrote: > Hi Wayland! > > This is our first release of the integration of Weston with DirectFB ;) > > Please see http://www.directfb.org/docs/DirectFB_Foreseeing_2013-10-07.pdf > and http://www.directfb.org/docs/DirectFB_EGL_2013-10-07.pdf for