display: Get the backend from the context

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2391>
This commit is contained in:
Jonas Ådahl
2022-04-27 12:12:33 +02:00
committed by Marge Bot
parent dd6afb28ff
commit 36de8baf55
5 changed files with 28 additions and 14 deletions

View File

@ -730,13 +730,15 @@ _clutter_is_input_pointer_a11y_enabled (ClutterInputDevice *device)
}
void
_clutter_input_pointer_a11y_maybe_handle_event (ClutterEvent *event)
clutter_input_pointer_a11y_update (ClutterInputDevice *device,
const ClutterEvent *event)
{
ClutterInputDevice *device = clutter_event_get_device (event);
ClutterMainContext *clutter_context;
ClutterBackend *backend;
g_return_if_fail (clutter_event_get_device (event) == device);
if (!_clutter_is_input_pointer_a11y_enabled (device))
return;