[PATCH weston 3/8 fixed] gl-renderer: Add optional support for desktop OpenGL.

2013-03-02 Thread John Kåre Alsaker
This adds support for desktop OpenGL which can be enabled by with ./configure --enable-opengl. Most of the differences in API between OpenGL and OpenGL ES is hidden by the new gl_renderer fields. It also accesses GLES2 extensions by including GLES2/gl2platform.h directly. --- configure.ac

Getting GTK XWayland applications to use the system's GTK theme

2013-03-02 Thread Rune Kjær Svendsen
Hello list I'm having trouble getting GTK applications running as XWayland client to use my system's GTK theme. I run Ubuntu 12.10, and everything just works wrt. GTK themes here (with Unity and compiz). But when I run weston (whether it be using the DRM or X backend) and launch GTK clients, most

[RFC weston 4/4] simple-egl: Use wl_egl_window_take_buffer

2013-03-02 Thread John Kåre Alsaker
--- clients/simple-egl.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clients/simple-egl.c b/clients/simple-egl.c index 26ebe5c..8138a02 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -365,6 +365,7 @@ redraw(void *data, struct wl_callback *callback

[RFC mesa 3/4] wayland: Add new take_buffer and commit for wayland-egl

2013-03-02 Thread John Kåre Alsaker
--- src/egl/drivers/dri2/platform_wayland.c| 106 ++--- src/egl/wayland/wayland-egl/wayland-egl-priv.h | 2 + src/egl/wayland/wayland-egl/wayland-egl.c | 22 + 3 files changed, 102 insertions(+), 28 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wa

[RFC mesa 2/4] wayland: Wait for frame callback after submitting frame

2013-03-02 Thread John Kåre Alsaker
--- src/egl/drivers/dri2/platform_wayland.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 6e702ab..56f5d3c 100644 --- a/src/egl/drivers/dri2/platform_wayland.

[RFC wayland 1/4] wayland-egl: Add functions to replace eglSwapBuffers.

2013-03-02 Thread John Kåre Alsaker
--- src/wayland-egl.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wayland-egl.h b/src/wayland-egl.h index 8255151..49bd9f7 100644 --- a/src/wayland-egl.h +++ b/src/wayland-egl.h @@ -30,7 +30,7 @@ extern "C" { #include -#define WL_EGL_PLATFORM 1 +#define WL_

[RFC 0/4] New wayland-egl functions for swapping

2013-03-02 Thread John Kåre Alsaker
This patchset introduces wl_egl_window_take_buffer and wl_egl_window_commit to the native wayland-egl platform. wl_egl_window_take_buffer gives a way to get a wl_buffer from an wl_egl_window. The application is expected to attach this to one or multiple wl_surfaces and the EGL implementation wil

[PATCH weston v3] toytoolkit: avoid redrawing a window between maximize and configure

2013-03-02 Thread MoD
Resolve a bad frame visible when maximizing toytoolkit programs with the the maximize button in decorations. Windows now use wl_display.sync requests to wait for a maximize to finish before drawing again, following suggestions from http://lists.freedesktop.org/archives/wayland-devel/2013-February/0

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

2013-03-02 Thread Bill Spitzak
On 02/28/2013 12:26 AM, Pekka Paalanen wrote: On Wed, 27 Feb 2013 16:01:18 -0500 Kristian Høgsberg wrote: Using weston_compositor_get_time() here is problematic (we need to get rid of that function, it's always problematic...). Input events come with their own timestamp, which are CLOCK_MONO

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

2013-03-02 Thread Bill Spitzak
On 02/22/2013 10:56 AM, Singh, Satyeshwar wrote: + if (!device->pending_events || !(device->pending_events & EVDEV_SYN)) This is the same as: if (!(device->pending_events & EVDEV_SYN)) (ie all the other bits in pending_events are ignored). is this correct? __

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

2013-03-02 Thread Rune Kjær Svendsen
On Wed, Feb 27, 2013 at 10:08 PM, Kristian Høgsberg wrote: > 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

[PATCH] compositor-drm: Inspect result of gbm_create_device.

2013-03-02 Thread John Kåre Alsaker
--- src/compositor-drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 3c44f7a..f60fce9 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1174,6 +1174,9 @@ init_egl(struct drm_compositor *ec) { ec->gbm = gbm_create_