aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-10-07 20:19:41 +0300
committerKirill Primak <vyivel@eclair.cafe>2022-10-07 20:19:41 +0300
commit7eedbde878d4022efd54868bdaef309cc2aa2fe6 (patch)
tree5636a0c2b988d7f742ba53e9b7505a280a4cb480
parentf4cf0a8d866be532693e1f8c660ae9a1c2560187 (diff)
tablet-v2: fix event parameters
-rw-r--r--types/tablet_v2/wlr_tablet_v2_pad.c2
-rw-r--r--types/tablet_v2/wlr_tablet_v2_tool.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/types/tablet_v2/wlr_tablet_v2_pad.c b/types/tablet_v2/wlr_tablet_v2_pad.c
index 1bdb4ab7..78ec8f22 100644
--- a/types/tablet_v2/wlr_tablet_v2_pad.c
+++ b/types/tablet_v2/wlr_tablet_v2_pad.c
@@ -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);
}
diff --git a/types/tablet_v2/wlr_tablet_v2_tool.c b/types/tablet_v2/wlr_tablet_v2_tool.c
index df8ab761..d9d14795 100644
--- a/types/tablet_v2/wlr_tablet_v2_tool.c
+++ b/types/tablet_v2/wlr_tablet_v2_tool.c
@@ -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);
}