By detecting whether libmutter was built with x11 or xwayland support and disabling relavant code paths Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3362>