diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-31 17:58:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 17:58:28 -0400 |
commit | c7c0d34e920dea27cab3b88c50b1202343a54435 (patch) | |
tree | 6966addb32a19e5c9606d0cbded7f922fb372461 /rootston/input.c | |
parent | 7200d643363e988edf6777c38e7f8fcd451a2c50 (diff) | |
parent | ec22fe713445977c1a122572107495b584117b16 (diff) |
Merge pull request #352 from emersion/output-cursor
Add wlr_output_cursor
Diffstat (limited to 'rootston/input.c')
-rw-r--r-- | rootston/input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rootston/input.c b/rootston/input.c index a6792bdb..8109d2b6 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -118,7 +118,10 @@ struct roots_input *input_create(struct roots_server *server, input->cursor = wlr_cursor_create(); cursor_initialize(input); - wlr_cursor_set_xcursor(input->cursor, xcursor); + + struct wlr_xcursor_image *image = xcursor->images[0]; + wlr_cursor_set_image(input->cursor, image->buffer, image->width, + image->width, image->height, image->hotspot_x, image->hotspot_y); wlr_cursor_attach_output_layout(input->cursor, server->desktop->layout); wlr_cursor_map_to_region(input->cursor, config->cursor.mapped_box); |