Avoids using the get_context macro Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3857>