[PATCH weston v2] window: track changes in libwayland-cursor api

2012-05-24 Thread Ander Conselvan de Oliveira
libwayland-cursor does not provide enum wl_cursor_type anymore so this brings back enum pointer_type. This partially revers commit 1042dc15e0ca69a4d8d4d23b862f1e3d3c8e054f. --- Changes in v2: Fixed display_get_pointer_image(). It was passing an enum pointer_type int as the cursor name to

[PATCH weston] wcap-decode: Dump all frames with --dump.

2012-05-24 Thread Scott Moreau
Instead of specifying a frame number, go ahead and just dump all frames when --dump is passed. --- src/wcap-decode.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/wcap-decode.c b/src/wcap-decode.c index 9ff7ddb..4f36644 100644 --- a/src/wcap-decode.c +

Re: [PATCH] Wayland: Add missing extern "C"

2012-05-24 Thread Andreas Ericsson
On 05/23/2012 08:14 AM, yan.w...@linux.intel.com wrote: > From: Yan Wang > > Add extern "C" macro definition for C++. This plays merry hell with most auto-indentation programs and some editors though. May I suggest something like this instead? #ifdef __cplusplus #define DECL_START extern "C" { #

[PATCH wayland 2/2] wayland-cursor: load all cursors from a theme on wl_cursor_theme_load

2012-05-24 Thread Ander Conselvan de Oliveira
--- cursor/wayland-cursor.c | 87 +++--- cursor/xcursor.c| 107 +++ cursor/xcursor.h|4 ++ 3 files changed, 145 insertions(+), 53 deletions(-) diff --git a/cursor/wayland-cursor.c b/cursor/wayland-c

[PATCH weston] window: track changes in libwayland-cursor api

2012-05-24 Thread Ander Conselvan de Oliveira
libwayland-cursor does not provide enum wl_cursor_type anymore so this brings back enum pointer_type. This partially revers commit 1042dc15e0ca69a4d8d4d23b862f1e3d3c8e054f. --- clients/clickdot.c |3 +- clients/desktop-shell.c |5 +-- clients/dnd.c |8 ++-- clients/even

[PATCH wayland 1/2] wayland-cursor: remove enum wl_cursor_type

2012-05-24 Thread Ander Conselvan de Oliveira
Defining a list of all cursors a theme, client or toolkit should have is not the purpose of libwayland-cursor. The cursor type enum existed for making lookups faster, but this kind of optmization belongs in the toolkits. --- cursor/wayland-cursor.c | 21 ++--- cursor/wayland-curs

Re: [PATCH radeon] Fix "Unable to retrieve master" with with X backend.

2012-05-24 Thread Kristian Høgsberg
On Wed, May 23, 2012 at 10:37 PM, Darxus wrote: > Fix case where, if weston was run with --xserver while using the X backend > without root priveledges, it would give an "Unable to retrieve master" > error and fail when it tried to launch X. That looks right, an xwayland driver can't and shouldn'