[mutter/wip/carlosg/input-thread: 8/43] backends: Simplify function arguments
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-thread: 8/43] backends: Simplify function arguments
- Date: Fri, 27 Nov 2020 13:25:23 +0000 (UTC)
commit 4ab46d157c4a16669eb56beaa20c56c8b298cd4e
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 11 17:40:52 2020 +0200
backends: Simplify function arguments
We just pass a device in order to check it with the seat pointer, we
can do without this.
src/backends/meta-input-settings.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c
index 6feb546904..36998868c5 100644
--- a/src/backends/meta-input-settings.c
+++ b/src/backends/meta-input-settings.c
@@ -1274,19 +1274,13 @@ pointer_a11y_dwell_direction_from_setting (MetaInputSettings *input_settings,
}
static void
-load_pointer_a11y_settings (MetaInputSettings *input_settings,
- ClutterInputDevice *device)
+load_pointer_a11y_settings (MetaInputSettings *input_settings)
{
MetaInputSettingsPrivate *priv = meta_input_settings_get_instance_private (input_settings);
ClutterPointerA11ySettings pointer_a11y_settings;
- ClutterInputDevice *core_pointer;
GDesktopMouseDwellMode dwell_mode;
guint i;
- core_pointer = clutter_seat_get_pointer (priv->seat);
- if (device && device != core_pointer)
- return;
-
clutter_seat_get_pointer_a11y_settings (CLUTTER_SEAT (priv->seat),
&pointer_a11y_settings);
pointer_a11y_settings.controls = 0;
@@ -1331,7 +1325,7 @@ meta_input_mouse_a11y_settings_changed (GSettings *settings,
{
MetaInputSettings *input_settings = META_INPUT_SETTINGS (user_data);
- load_pointer_a11y_settings (input_settings, NULL);
+ load_pointer_a11y_settings (input_settings);
}
static GSettings *
@@ -1496,7 +1490,6 @@ apply_device_settings (MetaInputSettings *input_settings,
update_pointer_accel_profile (input_settings,
priv->trackball_settings,
device);
- load_pointer_a11y_settings (input_settings, device);
update_middle_click_emulation (input_settings, priv->mouse_settings, device);
update_middle_click_emulation (input_settings, priv->touchpad_settings, device);
@@ -1721,6 +1714,7 @@ meta_input_settings_constructed (GObject *object)
check_mappable_devices (input_settings);
load_keyboard_a11y_settings (input_settings);
+ load_pointer_a11y_settings (input_settings);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]