tablet-v2: fix event parameters

This commit is contained in:
Kirill Primak 2022-10-07 20:19:41 +03:00
parent f4cf0a8d86
commit 7eedbde878
2 changed files with 2 additions and 2 deletions

View file

@ -526,7 +526,7 @@ void wlr_send_tablet_v2_tablet_pad_ring(struct wlr_tablet_v2_tablet_pad *pad,
if (position < 0) { if (position < 0) {
zwp_tablet_pad_ring_v2_send_stop(resource); zwp_tablet_pad_ring_v2_send_stop(resource);
} else { } 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); zwp_tablet_pad_ring_v2_send_frame(resource, time);
} }

View file

@ -489,7 +489,7 @@ void wlr_send_tablet_v2_tablet_tool_wheel(
struct wlr_tablet_v2_tablet_tool *tool, double degrees, int32_t clicks) { struct wlr_tablet_v2_tablet_tool *tool, double degrees, int32_t clicks) {
if (tool->current_client) { if (tool->current_client) {
zwp_tablet_tool_v2_send_wheel(tool->current_client->resource, zwp_tablet_tool_v2_send_wheel(tool->current_client->resource,
clicks, degrees); wl_fixed_from_double(degrees), clicks);
queue_tool_frame(tool->current_client); queue_tool_frame(tool->current_client);
} }