From 53e3d0df648f9e4b0d67c36453e0a6b19e134992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 29 Jul 2016 09:26:55 +0800 Subject: [PATCH] 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 --- src/backends/meta-input-settings.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c index 5c1972bd4..b1ca3f56e 100644 --- a/src/backends/meta-input-settings.c +++ b/src/backends/meta-input-settings.c @@ -1233,13 +1233,12 @@ static void apply_device_settings (MetaInputSettings *input_settings, ClutterInputDevice *device) { - update_mouse_left_handed (input_settings, device); update_device_speed (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_device_speed (input_settings, device); - update_device_natural_scroll (input_settings, device); update_touchpad_tap_enabled (input_settings, device); update_touchpad_send_events (input_settings, device); update_touchpad_edge_scroll (input_settings, device);