diff options
author | emersion <contact@emersion.fr> | 2017-10-08 23:11:59 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-08 23:11:59 +0200 |
commit | 8a77d1b6a2b28b90c8bb5ef079077aec1a44407c (patch) | |
tree | 50668edf938f3962a7e5a6a69191f80859664377 /include | |
parent | 17354b630a17f32a15b4b3f3710a8dc644e099d7 (diff) |
Listen to cursor surface commit & destroy events
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_output.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index c25e2fb8..dc637e26 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -49,6 +49,11 @@ struct wlr_output { int32_t hotspot_x, hotspot_y; struct wlr_renderer *renderer; struct wlr_texture *texture; + + // only when using a cursor surface + struct wlr_surface *surface; + struct wl_listener surface_commit; + struct wl_listener surface_destroy; } cursor; void *data; @@ -64,7 +69,7 @@ void wlr_output_transform(struct wlr_output *output, bool wlr_output_set_cursor(struct wlr_output *output, const uint8_t *buf, int32_t stride, uint32_t width, uint32_t height, int32_t hotspot_x, int32_t hotspot_y); -bool wlr_output_set_cursor_surface(struct wlr_output *output, +void wlr_output_set_cursor_surface(struct wlr_output *output, struct wlr_surface *surface, int32_t hotspot_x, int32_t hotspot_y); bool wlr_output_move_cursor(struct wlr_output *output, int x, int y); void wlr_output_destroy(struct wlr_output *output); |