From 220402b717951d3bdcce79783319eef6bbee9da4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 15 Jun 2023 18:40:33 +0200 Subject: cursor: add wlr_cursor_unset_image() It's pretty awkward to call wlr_cursor_set_image() with 6 zeroes. Hide that awkwardness in wlroots. --- include/wlr/types/wlr_cursor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_cursor.h b/include/wlr/types/wlr_cursor.h index f3c7e970..a4c2e731 100644 --- a/include/wlr/types/wlr_cursor.h +++ b/include/wlr/types/wlr_cursor.h @@ -147,6 +147,11 @@ void wlr_cursor_set_image(struct wlr_cursor *cur, const uint8_t *pixels, int32_t stride, uint32_t width, uint32_t height, int32_t hotspot_x, int32_t hotspot_y, float scale); +/** + * Hide the cursor image. + */ +void wlr_cursor_unset_image(struct wlr_cursor *cur); + /** * Set the cursor image from an XCursor theme. * -- cgit v1.2.3