backends/native: Plumb a11y modifiers through MetaSeatNative

These modifiers will be set by the backend from the main thread, and
need to be handled specially for them to be usable as both modifier
buttons, and their own regular action.

Carlos Garnacho: pass modifiers as array+lenght instead of hashtable.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4217>
This commit is contained in:
Lukáš Tyrychtr 2025-02-05 18:58:41 +01:00 committed by Marge Bot
parent d867964139
commit 8c52e243c0
2 changed files with 12 additions and 0 deletions

View File

@ -656,6 +656,14 @@ meta_seat_native_set_viewports (MetaSeatNative *seat,
meta_seat_impl_set_viewports (seat->impl, viewports);
}
void
meta_seat_native_set_a11y_modifiers (MetaSeatNative *seat,
const uint32_t *modifiers,
int n_modifiers)
{
meta_seat_impl_set_a11y_modifiers (seat->impl, modifiers, n_modifiers);
}
void
meta_seat_native_run_impl_task (MetaSeatNative *seat,
GSourceFunc dispatch_func,

View File

@ -137,3 +137,7 @@ void meta_seat_native_run_impl_task (MetaSeatNative *seat,
GSourceFunc dispatch_func,
gpointer user_data,
GDestroyNotify destroy_notify);
void meta_seat_native_set_a11y_modifiers (MetaSeatNative *seat,
const uint32_t *modifiers,
int n_modifiers);