output: add wlr_output_render_software_cursors

Rendering in wlr_output_swap_buffers has unfortunate side-effects.
This commit is contained in:
emersion 2018-11-10 15:50:28 +01:00
parent 57307b7aa7
commit ca770995cc
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 121 additions and 93 deletions

View file

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