mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
backends: Simplify function arguments
We just pass a device in order to check it with the seat pointer, we can do without this. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
This commit is contained in:
parent
5978531963
commit
e324f0fad0
@ -1269,19 +1269,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;
|
||||
@ -1326,7 +1320,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 *
|
||||
@ -1491,7 +1485,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);
|
||||
@ -1716,6 +1709,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
|
||||
|
Loading…
Reference in New Issue
Block a user