diff options
author | emersion <contact@emersion.fr> | 2017-10-29 11:20:11 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-31 12:30:56 +0100 |
commit | 2e2d63a16482135bb61db6a24cd09cd04c068c22 (patch) | |
tree | 387c49103f029b30e7ad24064cef1c48425f3e10 /examples | |
parent | c45f2eef0e0fb805d88b54b65db23bb8a49ebea6 (diff) |
Manage wlr_output_cursor from wlr_cursor
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pointer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/pointer.c b/examples/pointer.c index b2fef4e8..26d50b95 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -156,9 +156,8 @@ static void handle_cursor_motion_absolute(struct wl_listener *listener, sample->cur_x = event->x_mm; sample->cur_y = event->y_mm; - struct wlr_xcursor_image *image = sample->xcursor->images[0]; - wlr_cursor_warp_absolute(sample->cursor, event->device, - sample->cur_x - image->hotspot_x, sample->cur_y - image->hotspot_y); + wlr_cursor_warp_absolute(sample->cursor, event->device, sample->cur_x, + sample->cur_y); } static void handle_cursor_button(struct wl_listener *listener, void *data) { |