[PATCH weston 2/3] compositor-drm: Add a debug binding for toggling usage of hw cursors
Kristian Høgsberg
hoegsberg at gmail.com
Wed Nov 21 08:45:14 PST 2012
On Wed, Nov 21, 2012 at 03:11:37PM +0200, Ander Conselvan de Oliveira wrote:
> ---
> src/compositor-drm.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> index 73a0c52..142faa5 100644
> --- a/src/compositor-drm.c
> +++ b/src/compositor-drm.c
> @@ -2121,6 +2121,14 @@ hide_sprites_binding(struct wl_seat *seat, uint32_t time, uint32_t key,
> c->sprites_hidden ^= 1;
> }
>
> +static void
> +cursor_binding(struct wl_seat *seat, uint32_t time, uint32_t key, void *data)
> +{
> + struct drm_compositor *c = data;
> +
> + c->cursors_are_broken ^= 1;
> +}
This is pretty useful - should we do something like that for sprites
too? I always patch out the sprites_are_broken = 1 default to test
sprite stuff, would be nice to have a debug key for that.
Kristian
> static struct weston_compositor *
> drm_compositor_create(struct wl_display *display,
> int connector, const char *seat, int tty,
> @@ -2225,6 +2233,8 @@ drm_compositor_create(struct wl_display *display,
>
> weston_compositor_add_debug_binding(&ec->base, KEY_O,
> hide_sprites_binding, ec);
> + weston_compositor_add_debug_binding(&ec->base, KEY_C,
> + cursor_binding, ec);
>
> return &ec->base;
>
> --
> 1.7.10.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list