xinput: Fix typo, add config check

This commit is contained in:
Nekobit 2023-03-10 11:17:52 -05:00 committed by Gitea
parent 78470d03d9
commit 766360359b
2 changed files with 9 additions and 1 deletions

View File

@ -173,7 +173,7 @@ _handle_dev_prop(int dev_slot, const char *dev, const char *prop, Device_Flags d
unsigned char *val = ecore_x_input_device_property_get
(dev_slot, prop, &num, &fmt, &size);
if ((val) && (size == 8) && (num == 1) && ((cfval != val[0]))
if ((val) && (size == 8) && (num == 1) && (cfval != val[0]))
{
val[0] = cfval;
printf("DEV: change [%s] [%s] -> %i\n", dev, prop, val[0]);

View File

@ -1804,6 +1804,14 @@ e_config_load(void)
e_config->backlight.ddc = 1;
e_config_save_queue();
}
CONFIG_VERSION_CHECK(36)
{
CONFIG_VERSION_UPDATE_INFO(36);
e_config->mouse_flat_accel = 0;
e_config->mouse_hires_scroll = 1;
e_config->touch_flat_accel = 0;
e_config_save_queue();
}
}
elm_config_profile_set(_e_config_profile);
if (!e_config->remember_internal_fm_windows)