window: Add support for the blank cursor

This commit is contained in:
Kristian Høgsberg 2012-06-20 23:04:41 -04:00
parent f2735ea8af
commit f337052a5c
2 changed files with 9 additions and 1 deletions

View File

@ -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];

View File

@ -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,