tablet-v2: fix event parameters

Kirill Primak 2 years ago
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) { 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);
} }

@ -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);
} }

Loading…
Cancel
Save