diff options
author | Simon Ser <contact@emersion.fr> | 2023-04-11 17:38:19 +0200 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-05-06 17:48:56 +0000 |
commit | b64e7e88bfb8ab048dc3e599bcd900b9844fdd5f (patch) | |
tree | 6f19a87045afac70bc2ca3a54521b473ffebb836 /include | |
parent | b03f71fe5f65c57827bf01b90217879dc2779a5e (diff) |
output: add output_cursor_set_texture()
Diffstat (limited to 'include')
-rw-r--r-- | include/types/wlr_output.h | 4 | ||||
-rw-r--r-- | include/wlr/types/wlr_output.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h index 5f75eb60..5c1d8fab 100644 --- a/include/types/wlr_output.h +++ b/include/types/wlr_output.h @@ -13,4 +13,8 @@ void output_clear_back_buffer(struct wlr_output *output); bool output_ensure_buffer(struct wlr_output *output, const struct wlr_output_state *state, bool *new_back_buffer); +bool output_cursor_set_texture(struct wlr_output_cursor *cursor, + struct wlr_texture *texture, bool own_texture, float scale, + enum wl_output_transform transform, int32_t hotspot_x, int32_t hotspot_y); + #endif diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index dbf7524a..88dbffb9 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -44,6 +44,7 @@ struct wlr_output_cursor { // only when using a software cursor without a surface struct wlr_texture *texture; + bool own_texture; // only when using a cursor surface struct wlr_surface *surface; |