diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-15 18:40:33 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-15 18:40:33 +0200 |
commit | 220402b717951d3bdcce79783319eef6bbee9da4 (patch) | |
tree | 3c8061119ded1874c557fda13595295d16f959c0 /include/wlr | |
parent | da04b066ea037be0fdc5d79ac6b214fea6f2d3c5 (diff) |
cursor: add wlr_cursor_unset_image()
It's pretty awkward to call wlr_cursor_set_image() with 6 zeroes.
Hide that awkwardness in wlroots.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_cursor.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -148,6 +148,11 @@ void wlr_cursor_set_image(struct wlr_cursor *cur, const uint8_t *pixels, 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. * * The image will be loaded from the struct wlr_xcursor_manager. |