MetaInputSettings: Don't initialize the same setting twice

Two settings were set twice on the same device. Now instead group the
generic update functions together, removing the redundant calls.

https://bugzilla.gnome.org/show_bug.cgi?id=769179
This commit is contained in:
Jonas Ådahl 2016-07-29 09:26:55 +08:00
parent 97d180ee59
commit 53e3d0df64

View File

@ -1233,13 +1233,12 @@ static void
apply_device_settings (MetaInputSettings *input_settings, apply_device_settings (MetaInputSettings *input_settings,
ClutterInputDevice *device) ClutterInputDevice *device)
{ {
update_mouse_left_handed (input_settings, device);
update_device_speed (input_settings, device); update_device_speed (input_settings, device);
update_device_natural_scroll (input_settings, device); update_device_natural_scroll (input_settings, device);
update_mouse_left_handed (input_settings, device);
update_touchpad_left_handed (input_settings, device); update_touchpad_left_handed (input_settings, device);
update_device_speed (input_settings, device);
update_device_natural_scroll (input_settings, device);
update_touchpad_tap_enabled (input_settings, device); update_touchpad_tap_enabled (input_settings, device);
update_touchpad_send_events (input_settings, device); update_touchpad_send_events (input_settings, device);
update_touchpad_edge_scroll (input_settings, device); update_touchpad_edge_scroll (input_settings, device);