
In the shell side we ended up calling the wrong function [1] and mutter didn't stop us from doing it, so add some type-check guards to ensure we don't do similar errors again [1] https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3355 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3791>