This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch x11-keeb-repeat-delay
in repository enlightenment.
View the commit online.
commit ccbc8ac2eaecb9cd57887331d1d84a10045c9e85
Author: Swagtoy <m...@ow.swag.toys>
AuthorDate: Fri Jul 4 14:51:22 2025 -0400
xkbswitch: Fix math
---
src/modules/xkbswitch/e_mod_config.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/modules/xkbswitch/e_mod_config.c b/src/modules/xkbswitch/e_mod_config.c
index 881d79691..a0efe1513 100644
--- a/src/modules/xkbswitch/e_mod_config.c
+++ b/src/modules/xkbswitch/e_mod_config.c
@@ -206,7 +206,10 @@ _create_data(E_Config_Dialog *cfd)
cfdata->_only_label_ = e_config->xkb.only_label;
cfdata->dont_touch_my_damn_keyboard = e_config->xkb.dont_touch_my_damn_keyboard;
- cfdata->key_rate = -1000.0f / -e_config->keyboard.repeat_rate;
+ if (e_config->keyboard.repeat_rate != 0)
+ cfdata->key_rate = 1000.0f / e_config->keyboard.repeat_rate;
+ else
+ cfdata->key_rate = 1000.0f / 20.0f;
cfdata->key_delay = e_config->keyboard.repeat_delay / 1000.0f;
#undef FILL_DATA
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.