Instead of using the ClutterEvent information. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2024>