mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
tablet-v2: fix event parameters
This commit is contained in:
parent
f4cf0a8d86
commit
7eedbde878
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue