Skip to content

Commit

Permalink
wl: fix key repeat timeout
Browse files Browse the repository at this point in the history
(cherry picked from commit c31fc46)
  • Loading branch information
rawoul authored and aperezdc committed Aug 28, 2024
1 parent e0f2386 commit 31886ec
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 @@ -1225,7 +1225,7 @@ repeat_delay_timeout(CogWlPlatform *self)
wl_data.keyboard.repeat_data.time);

wl_data.keyboard.repeat_data.event_source =
g_timeout_add(wl_data.keyboard.repeat_info.rate, (GSourceFunc) repeat_delay_timeout, self);
g_timeout_add(1000 / wl_data.keyboard.repeat_info.rate, (GSourceFunc) repeat_delay_timeout, self);

return G_SOURCE_REMOVE;
}
Expand Down

0 comments on commit 31886ec

Please sign in to comment.