mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Manage wlr_output_cursor from wlr_cursor
This commit is contained in:
parent
c45f2eef0e
commit
2e2d63a164
4 changed files with 69 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue