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 authored and aperezdc committed Aug 28, 2024
1 parent 81064bb commit c31fc46
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 c31fc46

Please sign in to comment.