[mutter] MetaInputSettings: Don't initialize the same setting twice
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaInputSettings: Don't initialize the same setting twice
- Date: Wed, 3 Aug 2016 02:49:41 +0000 (UTC)
commit 53e3d0df648f9e4b0d67c36453e0a6b19e134992
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Jul 29 09:26:55 2016 +0800
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 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c
index 5c1972b..b1ca3f5 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]