Commit 97315c73 authored by Andrew Gaul's avatar Andrew Gaul

input-settings/x11: Fix typo in has_udev_property

GNOME/mutter!256
parent cb08960a
Pipeline #96703 failed with stages
in 7 minutes and 15 seconds
......@@ -426,32 +426,29 @@ update_middle_emulation (MetaInputSettings *input_settings,
GSettings *settings,
ClutterInputDevice *device)
{
GSettings *settings;
ConfigBoolFunc func;
const gchar *key = "emulate-middle";
MetaInputSettingsPrivate *priv = meta_input_settings_get_instance_private (input_settings);
if (!settings)
return;
if (settings == priv->mouse_settings)
func = META_INPUT_SETTINGS_GET_CLASS (input_settings)->set_mouse_middle_emulation;
else if (settings == priv->touchpad_settings)
func = META_INPUT_SETTINGS_GET_CLASS (input_settings)->set_touchpad_middle_emulation;
else if (settings == priv->trackball_settings)
func = META_INPUT_SETTINGS_GET_CLASS (input_settings)->set_trackpad_middle_emulation;
func = META_INPUT_SETTINGS_GET_CLASS (input_settings)->set_trackball_middle_emulation;
else
return;
if (device)
{
settings = get_settings_for_device_type (input_settings,
clutter_input_device_get_device_type (device));
if (!settings)
return;
settings_device_set_bool_setting (input_settings, device, func,
g_settings_get_boolean (settings, key));
}
else
{
settings = get_settings_for_device_type (input_settings, CLUTTER_POINTER_DEVICE);
settings_set_bool_setting (input_settings, CLUTTER_POINTER_DEVICE, func,
g_settings_get_boolean (settings, key));
}
......
......@@ -493,7 +493,7 @@ has_udev_property (MetaInputSettings *settings,
if (!warned_once)
{
g_warning ("Failed to set acceleration profile: no udev support");
g_warning ("Failed to query property: no udev support");
warned_once = TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment