diff options
author | emersion <contact@emersion.fr> | 2018-11-10 15:50:28 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-11-13 16:55:33 +0100 |
commit | ca770995cc98cb0889542b082c1924b24c6d5446 (patch) | |
tree | ba3c5858b6283bae6a33c60f7c41b0d856ef4042 /include/wlr | |
parent | 57307b7aa7ba9d1094c0ed452b47f128facda5aa (diff) |
output: add wlr_output_render_software_cursors
Rendering in wlr_output_swap_buffers has unfortunate side-effects.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 4e569168..557a3895 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -230,6 +230,12 @@ struct wlr_output *wlr_output_from_resource(struct wl_resource *resource); * a lock. */ void wlr_output_lock_software_cursors(struct wlr_output *output, bool lock); +/** + * Renders software cursors. This is a utility function that can be called when + * compositors render. + */ +void wlr_output_render_software_cursors(struct wlr_output *output, + pixman_region32_t *damage); struct wlr_output_cursor *wlr_output_cursor_create(struct wlr_output *output); |