Skip to content

Commit

Permalink
wl: fix key repeat timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rawoul committed Aug 28, 2024
1 parent edafaa0 commit 0276dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/wayland/cog-platform-wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ repeat_delay_timeout(CogWlSeat *seat)
seat->keyboard.repeat_data.time);

seat->keyboard.repeat_data.event_source =
g_timeout_add(seat->keyboard.repeat_info.rate, (GSourceFunc) repeat_delay_timeout, seat);
g_timeout_add(1000 / seat->keyboard.repeat_info.rate, (GSourceFunc) repeat_delay_timeout, seat);

return G_SOURCE_REMOVE;
}
Expand Down

0 comments on commit 0276dca

Please sign in to comment.