mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
clutter: Move bell_notify() from ClutterBackend to ClutterSeat
Bells can be considered to be a per-seat feature, so move it there. https://gitlab.gnome.org/GNOME/mutter/merge_requests/852
This commit is contained in:
@ -223,12 +223,9 @@ meta_input_device_native_is_grouped (ClutterInputDevice *device,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_input_device_native_bell_notify (void)
|
||||
meta_input_device_native_bell_notify (MetaInputDeviceNative *device)
|
||||
{
|
||||
ClutterBackend *backend;
|
||||
|
||||
backend = clutter_get_default_backend ();
|
||||
clutter_backend_bell_notify (backend);
|
||||
clutter_seat_bell_notify (CLUTTER_SEAT (device->seat));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -277,7 +274,7 @@ trigger_slow_keys (gpointer data)
|
||||
meta_input_device_native_free_pending_slow_key (slow_keys_event);
|
||||
|
||||
if (device->a11y_flags & CLUTTER_A11Y_SLOW_KEYS_BEEP_ACCEPT)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
@ -315,7 +312,7 @@ start_slow_keys (ClutterEvent *event,
|
||||
device->slow_keys_list = g_list_append (device->slow_keys_list, slow_keys_event);
|
||||
|
||||
if (device->a11y_flags & CLUTTER_A11Y_SLOW_KEYS_BEEP_PRESS)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -335,7 +332,7 @@ stop_slow_keys (ClutterEvent *event,
|
||||
meta_input_device_native_free_pending_slow_key (slow_keys_event);
|
||||
|
||||
if (device->a11y_flags & CLUTTER_A11Y_SLOW_KEYS_BEEP_REJECT)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -389,7 +386,7 @@ static void
|
||||
notify_bounce_keys_reject (MetaInputDeviceNative *device)
|
||||
{
|
||||
if (device->a11y_flags & CLUTTER_A11Y_BOUNCE_KEYS_BEEP_REJECT)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
@ -609,7 +606,7 @@ handle_stickykeys_release (ClutterEvent *event,
|
||||
if (key_event_is_modifier (event))
|
||||
{
|
||||
if (device->a11y_flags & CLUTTER_A11Y_STICKY_KEYS_BEEP)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -628,7 +625,7 @@ trigger_toggle_slowkeys (gpointer data)
|
||||
device->toggle_slowkeys_timer = 0;
|
||||
|
||||
if (device->a11y_flags & CLUTTER_A11Y_FEATURE_STATE_CHANGE_BEEP)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
|
||||
if (device->a11y_flags & CLUTTER_A11Y_SLOW_KEYS_ENABLED)
|
||||
set_slowkeys_off (device);
|
||||
@ -690,7 +687,7 @@ handle_enablekeys_release (ClutterEvent *event,
|
||||
device->shift_count = 0;
|
||||
|
||||
if (device->a11y_flags & CLUTTER_A11Y_FEATURE_STATE_CHANGE_BEEP)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
|
||||
if (device->a11y_flags & CLUTTER_A11Y_STICKY_KEYS_ENABLED)
|
||||
set_stickykeys_off (device);
|
||||
@ -1227,7 +1224,7 @@ void
|
||||
meta_input_device_native_a11y_maybe_notify_toggle_keys (MetaInputDeviceNative *device)
|
||||
{
|
||||
if (device->a11y_flags & CLUTTER_A11Y_TOGGLE_KEYS_ENABLED)
|
||||
meta_input_device_native_bell_notify ();
|
||||
meta_input_device_native_bell_notify (device);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user