mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00:00
tablet-v2: fix event parameters
This commit is contained in:
parent
f4cf0a8d86
commit
7eedbde878
@ -526,7 +526,7 @@ void wlr_send_tablet_v2_tablet_pad_ring(struct wlr_tablet_v2_tablet_pad *pad,
|
||||
if (position < 0) {
|
||||
zwp_tablet_pad_ring_v2_send_stop(resource);
|
||||
} else {
|
||||
zwp_tablet_pad_ring_v2_send_angle(resource, position);
|
||||
zwp_tablet_pad_ring_v2_send_angle(resource, wl_fixed_from_double(position));
|
||||
}
|
||||
zwp_tablet_pad_ring_v2_send_frame(resource, time);
|
||||
}
|
||||
|
@ -489,7 +489,7 @@ void wlr_send_tablet_v2_tablet_tool_wheel(
|
||||
struct wlr_tablet_v2_tablet_tool *tool, double degrees, int32_t clicks) {
|
||||
if (tool->current_client) {
|
||||
zwp_tablet_tool_v2_send_wheel(tool->current_client->resource,
|
||||
clicks, degrees);
|
||||
wl_fixed_from_double(degrees), clicks);
|
||||
|
||||
queue_tool_frame(tool->current_client);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user