libinput: new package

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2015-06-10 18:12:44 +02:00
parent 7fef81c10d
commit ca738e067b
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
--- a/src/libinput-util.c
+++ b/src/libinput-util.c
@@ -215,18 +215,10 @@ parse_mouse_wheel_click_angle_property(c
double
parse_trackpoint_accel_property(const char *prop)
{
- locale_t c_locale;
double accel;
char *endp;
- /* Create a "C" locale to force strtod to use '.' as separator */
- c_locale = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
- if (c_locale == (locale_t)0)
- return 0.0;
-
- accel = strtod_l(prop, &endp, c_locale);
-
- freelocale(c_locale);
+ accel = strtod(prop, &endp);
if (*endp != '\0')
return 0.0;