mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-02-16 17:22:43 +00:00
backend/x11: send touch frame events
This commit is contained in:
parent
8eef6a8843
commit
c1902cdb3f
@ -79,6 +79,7 @@ static void send_touch_down_event(struct wlr_x11_output *output,
|
||||
.touch_id = touch_id,
|
||||
};
|
||||
wlr_signal_emit_safe(&output->touch.events.down, &ev);
|
||||
wlr_signal_emit_safe(&output->touch.events.frame, NULL);
|
||||
}
|
||||
|
||||
static void send_touch_motion_event(struct wlr_x11_output *output,
|
||||
@ -91,6 +92,7 @@ static void send_touch_motion_event(struct wlr_x11_output *output,
|
||||
.touch_id = touch_id,
|
||||
};
|
||||
wlr_signal_emit_safe(&output->touch.events.motion, &ev);
|
||||
wlr_signal_emit_safe(&output->touch.events.frame, NULL);
|
||||
}
|
||||
|
||||
static void send_touch_up_event(struct wlr_x11_output *output,
|
||||
@ -101,6 +103,7 @@ static void send_touch_up_event(struct wlr_x11_output *output,
|
||||
.touch_id = touch_id,
|
||||
};
|
||||
wlr_signal_emit_safe(&output->touch.events.up, &ev);
|
||||
wlr_signal_emit_safe(&output->touch.events.frame, NULL);
|
||||
}
|
||||
|
||||
static struct wlr_x11_touchpoint* get_touchpoint_from_x11_touch_id(struct wlr_x11_output *output,
|
||||
|
Loading…
Reference in New Issue
Block a user