mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
chase: use wayland pointer enums rather than wlr ones
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
This commit is contained in:
parent
d8d45dc2cb
commit
5c6e1ed878
6 changed files with 25 additions and 17 deletions
|
|
@ -127,7 +127,7 @@ touch_down(struct wl_listener *listener, void *data)
|
|||
} else {
|
||||
cursor_emulate_move_absolute(seat, &event->touch->base,
|
||||
event->x, event->y, event->time_msec);
|
||||
cursor_emulate_button(seat, BTN_LEFT, WLR_BUTTON_PRESSED,
|
||||
cursor_emulate_button(seat, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED,
|
||||
event->time_msec);
|
||||
}
|
||||
}
|
||||
|
|
@ -146,8 +146,8 @@ touch_up(struct wl_listener *listener, void *data)
|
|||
wlr_seat_touch_notify_up(seat->seat, event->time_msec,
|
||||
event->touch_id);
|
||||
} else {
|
||||
cursor_emulate_button(seat, BTN_LEFT, WLR_BUTTON_RELEASED,
|
||||
event->time_msec);
|
||||
cursor_emulate_button(seat, BTN_LEFT,
|
||||
WL_POINTER_BUTTON_STATE_RELEASED, event->time_msec);
|
||||
}
|
||||
wl_list_remove(&touch_point->link);
|
||||
zfree(touch_point);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue