mirror of
https://github.com/swaywm/sway.git
synced 2026-04-27 06:46:25 -04:00
Switch to progress tracker
This commit is contained in:
parent
a3e3242621
commit
16e60f2ea5
1 changed files with 0 additions and 4 deletions
|
|
@ -378,8 +378,6 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
|
||||||
seat->touch_x = lx;
|
seat->touch_x = lx;
|
||||||
seat->touch_y = ly;
|
seat->touch_y = ly;
|
||||||
|
|
||||||
|
|
||||||
sway_log(SWAY_DEBUG, "Touch pos: (%f, %f)", lx,ly);
|
|
||||||
libtouch_progress_register_touch(cursor->gesture_tracker, event->time_msec,
|
libtouch_progress_register_touch(cursor->gesture_tracker, event->time_msec,
|
||||||
event->touch_id, LIBTOUCH_TOUCH_DOWN,
|
event->touch_id, LIBTOUCH_TOUCH_DOWN,
|
||||||
lx, ly);
|
lx, ly);
|
||||||
|
|
@ -400,7 +398,6 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
static void handle_touch_up(struct wl_listener *listener, void *data) {
|
static void handle_touch_up(struct wl_listener *listener, void *data) {
|
||||||
struct sway_cursor *cursor = wl_container_of(listener, cursor, touch_up);
|
struct sway_cursor *cursor = wl_container_of(listener, cursor, touch_up);
|
||||||
struct libtouch_engine *engine = cursor->gesture_engine;
|
|
||||||
wlr_idle_notify_activity(server.idle, cursor->seat->wlr_seat);
|
wlr_idle_notify_activity(server.idle, cursor->seat->wlr_seat);
|
||||||
struct wlr_event_touch_up *event = data;
|
struct wlr_event_touch_up *event = data;
|
||||||
struct wlr_seat *seat = cursor->seat->wlr_seat;
|
struct wlr_seat *seat = cursor->seat->wlr_seat;
|
||||||
|
|
@ -456,7 +453,6 @@ static void handle_touch_motion(struct wl_listener *listener, void *data) {
|
||||||
wlr_seat_touch_notify_motion(wlr_seat, event->time_msec,
|
wlr_seat_touch_notify_motion(wlr_seat, event->time_msec,
|
||||||
event->touch_id, sx, sy);
|
event->touch_id, sx, sy);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue