[PATCH weston 2/3] compositor-drm: Add a debug binding for toggling usage of hw cursors
Ander Conselvan de Oliveira
ander.conselvan.de.oliveira at intel.com
Wed Nov 21 05:11:37 PST 2012
---
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;
+}
+
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
More information about the wayland-devel
mailing list