From f337052a5cce5c6fd36efb2666ced7ff7b4f9c5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 20 Jun 2012 23:04:41 -0400 Subject: [PATCH] window: Add support for the blank cursor --- clients/window.c | 6 ++++++ clients/window.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 25a8036..f41812a 100644 --- a/clients/window.c +++ b/clients/window.c @@ -2398,6 +2398,12 @@ pointer_surface_frame_callback(void *data, struct wl_callback *callback, input->cursor_frame_cb = NULL; } + if (input->current_cursor == CURSOR_BLANK) { + wl_pointer_set_cursor(input->pointer, input->display->serial, + NULL, 0, 0); + return; + } + if (input->current_cursor == CURSOR_UNSET) return; cursor = input->display->cursors[input->current_cursor]; diff --git a/clients/window.h b/clients/window.h index 92e52a9..12e4352 100644 --- a/clients/window.h +++ b/clients/window.h @@ -153,7 +153,9 @@ enum cursor_type { CURSOR_TOP, CURSOR_IBEAM, CURSOR_HAND1, - CURSOR_WATCH + CURSOR_WATCH, + + CURSOR_BLANK }; typedef void (*window_key_handler_t)(struct window *window, struct input *input, -- 2.7.4